Lines Matching refs:ret_pos

115 	zend_long ret_pos;  in PHP_FUNCTION()  local
156ret_pos = grapheme_strpos_utf16(haystack, haystack_len, needle, needle_len, offset, NULL, 0 /* fIg… in PHP_FUNCTION()
158 if ( ret_pos >= 0 ) { in PHP_FUNCTION()
159 RETURN_LONG(ret_pos); in PHP_FUNCTION()
176 zend_long ret_pos; in PHP_FUNCTION() local
226ret_pos = grapheme_strpos_utf16(haystack, haystack_len, needle, needle_len, offset, NULL, 1 /* fIg… in PHP_FUNCTION()
228 if ( ret_pos >= 0 ) { in PHP_FUNCTION()
229 RETURN_LONG(ret_pos); in PHP_FUNCTION()
245 zend_long ret_pos; in PHP_FUNCTION() local
273 ret_pos = grapheme_strrpos_ascii(haystack, haystack_len, needle, needle_len, offset); in PHP_FUNCTION()
275 if ( ret_pos >= 0 ) { in PHP_FUNCTION()
276 RETURN_LONG(ret_pos); in PHP_FUNCTION()
288ret_pos = grapheme_strpos_utf16(haystack, haystack_len, needle, needle_len, offset, NULL, 0 /* f_i… in PHP_FUNCTION()
290 if ( ret_pos >= 0 ) { in PHP_FUNCTION()
291 RETURN_LONG(ret_pos); in PHP_FUNCTION()
308 zend_long ret_pos; in PHP_FUNCTION() local
342 ret_pos = grapheme_strrpos_ascii(haystack_dup, haystack_len, needle_dup, needle_len, offset); in PHP_FUNCTION()
347 if ( ret_pos >= 0 ) { in PHP_FUNCTION()
348 RETURN_LONG(ret_pos); in PHP_FUNCTION()
360ret_pos = grapheme_strpos_utf16(haystack, haystack_len, needle, needle_len, offset, NULL, 1 /* f_… in PHP_FUNCTION()
362 if ( ret_pos >= 0 ) { in PHP_FUNCTION()
363 RETURN_LONG(ret_pos); in PHP_FUNCTION()
595 int32_t ret_pos, uchar_pos; in strstr_common_handler() local
640ret_pos = grapheme_strpos_utf16(haystack, haystack_len, needle, needle_len, 0, &uchar_pos, f_ignor… in strstr_common_handler()
642 if ( ret_pos < 0 ) { in strstr_common_handler()
648 ret_pos = 0; in strstr_common_handler()
649 U8_FWD_N(haystack, ret_pos, haystack_len, uchar_pos); in strstr_common_handler()
652 RETURN_STRINGL(haystack, ret_pos); in strstr_common_handler()
654 RETURN_STRINGL(haystack + ret_pos, haystack_len - ret_pos); in strstr_common_handler()
681 int ret_pos = 0; in grapheme_extract_charcount_iter() local
692 for ( break_pos = ret_pos; break_pos < pos; ) { in grapheme_extract_charcount_iter()
709 ret_pos = break_pos; in grapheme_extract_charcount_iter()
712 return ret_pos; in grapheme_extract_charcount_iter()
721 int ret_pos = 0; in grapheme_extract_bytecount_iter() local
734 ret_pos = pos; in grapheme_extract_bytecount_iter()
737 return ret_pos; in grapheme_extract_bytecount_iter()
746 int ret_pos = 0; in grapheme_extract_count_iter() local
754 ret_pos = next_pos; in grapheme_extract_count_iter()
758 return ret_pos; in grapheme_extract_count_iter()
786 int ret_pos; in PHP_FUNCTION() local
885ret_pos = (*grapheme_extract_iters[extract_type])(bi, size, (unsigned char *)pstr, (int32_t)str_le… in PHP_FUNCTION()
891 ZVAL_LONG(next, start+ret_pos); in PHP_FUNCTION()
894 RETURN_STRINGL(((char *)pstr), ret_pos); in PHP_FUNCTION()