Lines Matching refs:ret_pos

108 	zend_long ret_pos;  in PHP_FUNCTION()  local
139ret_pos = grapheme_strpos_utf16(haystack, haystack_len, needle, needle_len, offset, NULL, 0 /* fIg… in PHP_FUNCTION()
141 if ( ret_pos >= 0 ) { in PHP_FUNCTION()
142 RETURN_LONG(ret_pos); in PHP_FUNCTION()
157 zend_long ret_pos; in PHP_FUNCTION() local
200ret_pos = grapheme_strpos_utf16(haystack, haystack_len, needle, needle_len, offset, NULL, 1 /* fIg… in PHP_FUNCTION()
202 if ( ret_pos >= 0 ) { in PHP_FUNCTION()
203 RETURN_LONG(ret_pos); in PHP_FUNCTION()
218 zend_long ret_pos; in PHP_FUNCTION() local
239 ret_pos = grapheme_strrpos_ascii(haystack, haystack_len, needle, needle_len, offset); in PHP_FUNCTION()
241 if ( ret_pos >= 0 ) { in PHP_FUNCTION()
242 RETURN_LONG(ret_pos); in PHP_FUNCTION()
254ret_pos = grapheme_strpos_utf16(haystack, haystack_len, needle, needle_len, offset, NULL, 0 /* f_i… in PHP_FUNCTION()
256 if ( ret_pos >= 0 ) { in PHP_FUNCTION()
257 RETURN_LONG(ret_pos); in PHP_FUNCTION()
273 zend_long ret_pos; in PHP_FUNCTION() local
300 ret_pos = grapheme_strrpos_ascii(haystack_dup, haystack_len, needle_dup, needle_len, offset); in PHP_FUNCTION()
305 if ( ret_pos >= 0 ) { in PHP_FUNCTION()
306 RETURN_LONG(ret_pos); in PHP_FUNCTION()
318ret_pos = grapheme_strpos_utf16(haystack, haystack_len, needle, needle_len, offset, NULL, 1 /* f_… in PHP_FUNCTION()
320 if ( ret_pos >= 0 ) { in PHP_FUNCTION()
321 RETURN_LONG(ret_pos); in PHP_FUNCTION()
546 int32_t ret_pos, uchar_pos; in strstr_common_handler() local
577ret_pos = grapheme_strpos_utf16(haystack, haystack_len, needle, needle_len, 0, &uchar_pos, f_ignor… in strstr_common_handler()
579 if ( ret_pos < 0 ) { in strstr_common_handler()
585 ret_pos = 0; in strstr_common_handler()
586 U8_FWD_N(haystack, ret_pos, haystack_len, uchar_pos); in strstr_common_handler()
589 RETURN_STRINGL(haystack, ret_pos); in strstr_common_handler()
591 RETURN_STRINGL(haystack + ret_pos, haystack_len - ret_pos); in strstr_common_handler()
616 int ret_pos = 0; in grapheme_extract_charcount_iter() local
627 for ( break_pos = ret_pos; break_pos < pos; ) { in grapheme_extract_charcount_iter()
644 ret_pos = break_pos; in grapheme_extract_charcount_iter()
647 return ret_pos; in grapheme_extract_charcount_iter()
656 int ret_pos = 0; in grapheme_extract_bytecount_iter() local
669 ret_pos = pos; in grapheme_extract_bytecount_iter()
672 return ret_pos; in grapheme_extract_bytecount_iter()
681 int ret_pos = 0; in grapheme_extract_count_iter() local
689 ret_pos = next_pos; in grapheme_extract_count_iter()
693 return ret_pos; in grapheme_extract_count_iter()
720 int ret_pos; in PHP_FUNCTION() local
825ret_pos = (*grapheme_extract_iters[extract_type])(bi, size, (unsigned char *)pstr, (int32_t)str_le… in PHP_FUNCTION()
831 ZVAL_LONG(next, start+ret_pos); in PHP_FUNCTION()
834 RETURN_STRINGL(((char *)pstr), ret_pos); in PHP_FUNCTION()