Lines Matching refs:ret_pos
90 zend_long ret_pos; in PHP_FUNCTION() local
121 …ret_pos = grapheme_strpos_utf16(haystack, haystack_len, needle, needle_len, offset, NULL, 0 /* fIg… in PHP_FUNCTION()
123 if ( ret_pos >= 0 ) { in PHP_FUNCTION()
124 RETURN_LONG(ret_pos); in PHP_FUNCTION()
139 zend_long ret_pos; in PHP_FUNCTION() local
182 …ret_pos = grapheme_strpos_utf16(haystack, haystack_len, needle, needle_len, offset, NULL, 1 /* fIg… in PHP_FUNCTION()
184 if ( ret_pos >= 0 ) { in PHP_FUNCTION()
185 RETURN_LONG(ret_pos); in PHP_FUNCTION()
200 zend_long ret_pos; in PHP_FUNCTION() local
221 ret_pos = grapheme_strrpos_ascii(haystack, haystack_len, needle, needle_len, offset); in PHP_FUNCTION()
223 if ( ret_pos >= 0 ) { in PHP_FUNCTION()
224 RETURN_LONG(ret_pos); in PHP_FUNCTION()
236 …ret_pos = grapheme_strpos_utf16(haystack, haystack_len, needle, needle_len, offset, NULL, 0 /* f_i… in PHP_FUNCTION()
238 if ( ret_pos >= 0 ) { in PHP_FUNCTION()
239 RETURN_LONG(ret_pos); in PHP_FUNCTION()
255 zend_long ret_pos; in PHP_FUNCTION() local
282 ret_pos = grapheme_strrpos_ascii(haystack_dup, haystack_len, needle_dup, needle_len, offset); in PHP_FUNCTION()
287 if ( ret_pos >= 0 ) { in PHP_FUNCTION()
288 RETURN_LONG(ret_pos); in PHP_FUNCTION()
300 …ret_pos = grapheme_strpos_utf16(haystack, haystack_len, needle, needle_len, offset, NULL, 1 /* f_… in PHP_FUNCTION()
302 if ( ret_pos >= 0 ) { in PHP_FUNCTION()
303 RETURN_LONG(ret_pos); in PHP_FUNCTION()
528 int32_t ret_pos, uchar_pos; in strstr_common_handler() local
559 …ret_pos = grapheme_strpos_utf16(haystack, haystack_len, needle, needle_len, 0, &uchar_pos, f_ignor… in strstr_common_handler()
561 if ( ret_pos < 0 ) { in strstr_common_handler()
567 ret_pos = 0; in strstr_common_handler()
568 U8_FWD_N(haystack, ret_pos, haystack_len, uchar_pos); in strstr_common_handler()
571 RETURN_STRINGL(haystack, ret_pos); in strstr_common_handler()
573 RETURN_STRINGL(haystack + ret_pos, haystack_len - ret_pos); in strstr_common_handler()
598 int ret_pos = 0; in grapheme_extract_charcount_iter() local
609 for ( break_pos = ret_pos; break_pos < pos; ) { in grapheme_extract_charcount_iter()
626 ret_pos = break_pos; in grapheme_extract_charcount_iter()
629 return ret_pos; in grapheme_extract_charcount_iter()
638 int ret_pos = 0; in grapheme_extract_bytecount_iter() local
651 ret_pos = pos; in grapheme_extract_bytecount_iter()
654 return ret_pos; in grapheme_extract_bytecount_iter()
663 int ret_pos = 0; in grapheme_extract_count_iter() local
671 ret_pos = next_pos; in grapheme_extract_count_iter()
675 return ret_pos; in grapheme_extract_count_iter()
702 int ret_pos; in PHP_FUNCTION() local
807 …ret_pos = (*grapheme_extract_iters[extract_type])(bi, size, (unsigned char *)pstr, (int32_t)str_le… in PHP_FUNCTION()
813 ZVAL_LONG(next, start+ret_pos); in PHP_FUNCTION()
816 RETURN_STRINGL(((char *)pstr), ret_pos); in PHP_FUNCTION()