Lines Matching refs:ret_pos
116 int ret_pos; in PHP_FUNCTION() local
164 …ret_pos = grapheme_strpos_utf16(haystack, haystack_len, needle, needle_len, offset, NULL, 0 /* fIg… in PHP_FUNCTION()
166 if ( ret_pos >= 0 ) { in PHP_FUNCTION()
167 RETURN_LONG(ret_pos); in PHP_FUNCTION()
184 int ret_pos; in PHP_FUNCTION() local
240 …ret_pos = grapheme_strpos_utf16(haystack, haystack_len, needle, needle_len, offset, NULL, 1 /* fIg… in PHP_FUNCTION()
242 if ( ret_pos >= 0 ) { in PHP_FUNCTION()
243 RETURN_LONG(ret_pos); in PHP_FUNCTION()
259 int32_t ret_pos; in PHP_FUNCTION() local
293 ret_pos = grapheme_strrpos_ascii(haystack, haystack_len, needle, needle_len, offset); in PHP_FUNCTION()
296 if ( ret_pos >= 0 ) { in PHP_FUNCTION()
297 RETURN_LONG(ret_pos); in PHP_FUNCTION()
309 …ret_pos = grapheme_strpos_utf16(haystack, haystack_len, needle, needle_len, offset, NULL, 0 /* f_i… in PHP_FUNCTION()
311 if ( ret_pos >= 0 ) { in PHP_FUNCTION()
312 RETURN_LONG(ret_pos); in PHP_FUNCTION()
329 int32_t ret_pos; in PHP_FUNCTION() local
369 ret_pos = grapheme_strrpos_ascii(haystack_dup, haystack_len, needle_dup, needle_len, offset); in PHP_FUNCTION()
374 if ( ret_pos >= 0 ) { in PHP_FUNCTION()
375 RETURN_LONG(ret_pos); in PHP_FUNCTION()
387 …ret_pos = grapheme_strpos_utf16(haystack, haystack_len, needle, needle_len, offset, NULL, 1 /* f_… in PHP_FUNCTION()
389 if ( ret_pos >= 0 ) { in PHP_FUNCTION()
390 RETURN_LONG(ret_pos); in PHP_FUNCTION()
619 int ret_pos, uchar_pos; in strstr_common_handler() local
664 …ret_pos = grapheme_strpos_utf16(haystack, haystack_len, needle, needle_len, 0, &uchar_pos, f_ignor… in strstr_common_handler()
666 if ( ret_pos < 0 ) { in strstr_common_handler()
672 ret_pos = 0; in strstr_common_handler()
673 U8_FWD_N(haystack, ret_pos, haystack_len, uchar_pos); in strstr_common_handler()
676 RETURN_STRINGL(((char *)haystack), ret_pos, 1); in strstr_common_handler()
679 RETURN_STRINGL(((char *)haystack) + ret_pos, haystack_len - ret_pos, 1); in strstr_common_handler()
706 int ret_pos = 0; in grapheme_extract_charcount_iter() local
717 for ( break_pos = ret_pos; break_pos < pos; ) { in grapheme_extract_charcount_iter()
734 ret_pos = break_pos; in grapheme_extract_charcount_iter()
737 return ret_pos; in grapheme_extract_charcount_iter()
746 int ret_pos = 0; in grapheme_extract_bytecount_iter() local
759 ret_pos = pos; in grapheme_extract_bytecount_iter()
762 return ret_pos; in grapheme_extract_bytecount_iter()
771 int ret_pos = 0; in grapheme_extract_count_iter() local
779 ret_pos = next_pos; in grapheme_extract_count_iter()
783 return ret_pos; in grapheme_extract_count_iter()
811 int ret_pos; in PHP_FUNCTION() local
914 ret_pos = (*grapheme_extract_iters[extract_type])(bi, size, pstr, str_len); in PHP_FUNCTION()
920 ZVAL_LONG(next, start+ret_pos); in PHP_FUNCTION()
923 RETURN_STRINGL(((char *)pstr), ret_pos, 1); in PHP_FUNCTION()