Searched refs:pstr (Results 1 – 7 of 7) sorted by relevance
/ndk/sources/host-tools/sed-4.2.1/lib/ |
D | regex_internal.c | 24 re_string_t *pstr, 42 re_string_allocate (re_string_t *pstr, const char *str, Idx len, Idx init_len, in re_string_allocate() argument 52 re_string_construct_common (str, len, pstr, trans, icase, dfa); in re_string_allocate() 54 ret = re_string_realloc_buffers (pstr, init_buf_len); in re_string_allocate() 58 pstr->word_char = dfa->word_char; in re_string_allocate() 59 pstr->word_ops_used = dfa->word_ops_used; in re_string_allocate() 60 pstr->mbs = pstr->mbs_allocated ? pstr->mbs : (unsigned char *) str; in re_string_allocate() 61 pstr->valid_len = (pstr->mbs_allocated || dfa->mb_cur_max > 1) ? 0 : len; in re_string_allocate() 62 pstr->valid_raw_len = pstr->valid_len; in re_string_allocate() 70 re_string_construct (re_string_t *pstr, const char *str, Idx len, in re_string_construct() argument [all …]
|
D | regex_internal.h | 431 static reg_errcode_t re_string_realloc_buffers (re_string_t *pstr, 435 static void build_wcs_buffer (re_string_t *pstr) internal_function; 436 static reg_errcode_t build_wcs_upper_buffer (re_string_t *pstr) 439 static void build_upper_buffer (re_string_t *pstr) internal_function; 440 static void re_string_translate_buffer (re_string_t *pstr) internal_function; 444 #define re_string_peek_byte(pstr, offset) \ argument 445 ((pstr)->mbs[(pstr)->cur_idx + offset]) 446 #define re_string_fetch_byte(pstr) \ argument 447 ((pstr)->mbs[(pstr)->cur_idx++]) 448 #define re_string_first_byte(pstr, idx) \ argument [all …]
|
D | regexec.c | 4132 re_string_t *pstr = &mctx->input; in extend_buffers() local 4135 if (BE (SIZE_MAX / 2 / sizeof (re_dfastate_t *) <= pstr->bufs_len, 0)) in extend_buffers() 4139 ret = re_string_realloc_buffers (pstr, pstr->bufs_len * 2); in extend_buffers() 4150 pstr->bufs_len + 1); in extend_buffers() 4157 if (pstr->icase) in extend_buffers() 4160 if (pstr->mb_cur_max > 1) in extend_buffers() 4162 ret = build_wcs_upper_buffer (pstr); in extend_buffers() 4168 build_upper_buffer (pstr); in extend_buffers() 4173 if (pstr->mb_cur_max > 1) in extend_buffers() 4174 build_wcs_buffer (pstr); in extend_buffers() [all …]
|
/ndk/tests/device/test-stlport/unit/ |
D | find_test.cpp | 120 char *pstr = (char*)str; in find_char() local 124 char *d = find(pstr, pstr + str_size, 'd'); in find_char() 130 char *last = find(pstr, pstr + str_size, 'x'); in find_char() 131 CPPUNIT_ASSERT( last == pstr + str_size ); in find_char()
|
D | mvctor_test.cpp | 68 char const* pstr = vec_strs.front().c_str(); in move_construct_test() local 77 CPPUNIT_ASSERT((pstr == vec_strs.front().c_str())); in move_construct_test() 88 pstr = vec_strs[2].c_str(); in move_construct_test() 92 CPPUNIT_ASSERT((pstr == vec_strs[1].c_str())); in move_construct_test()
|
/ndk/tests/device/test-gnustl-full/unit/ |
D | find_test.cpp | 120 char *pstr = (char*)str; in find_char() local 124 char *d = find(pstr, pstr + str_size, 'd'); in find_char() 130 char *last = find(pstr, pstr + str_size, 'x'); in find_char() 131 CPPUNIT_ASSERT( last == pstr + str_size ); in find_char()
|
D | mvctor_test.cpp | 68 char const* pstr = vec_strs.front().c_str(); in move_construct_test() local 77 CPPUNIT_ASSERT((pstr == vec_strs.front().c_str())); in move_construct_test() 88 pstr = vec_strs[2].c_str(); in move_construct_test() 92 CPPUNIT_ASSERT((pstr == vec_strs[1].c_str())); in move_construct_test()
|