Lines Matching refs:ret_pos

110 	zend_long ret_pos;  in PHP_FUNCTION()  local
141ret_pos = grapheme_strpos_utf16(haystack, haystack_len, needle, needle_len, offset, NULL, 0 /* fIg… in PHP_FUNCTION()
143 if ( ret_pos >= 0 ) { in PHP_FUNCTION()
144 RETURN_LONG(ret_pos); in PHP_FUNCTION()
159 zend_long ret_pos; in PHP_FUNCTION() local
202ret_pos = grapheme_strpos_utf16(haystack, haystack_len, needle, needle_len, offset, NULL, 1 /* fIg… in PHP_FUNCTION()
204 if ( ret_pos >= 0 ) { in PHP_FUNCTION()
205 RETURN_LONG(ret_pos); in PHP_FUNCTION()
220 zend_long ret_pos; in PHP_FUNCTION() local
241 ret_pos = grapheme_strrpos_ascii(haystack, haystack_len, needle, needle_len, offset); in PHP_FUNCTION()
243 if ( ret_pos >= 0 ) { in PHP_FUNCTION()
244 RETURN_LONG(ret_pos); in PHP_FUNCTION()
256ret_pos = grapheme_strpos_utf16(haystack, haystack_len, needle, needle_len, offset, NULL, 0 /* f_i… in PHP_FUNCTION()
258 if ( ret_pos >= 0 ) { in PHP_FUNCTION()
259 RETURN_LONG(ret_pos); in PHP_FUNCTION()
275 zend_long ret_pos; in PHP_FUNCTION() local
302 ret_pos = grapheme_strrpos_ascii(haystack_dup, haystack_len, needle_dup, needle_len, offset); in PHP_FUNCTION()
307 if ( ret_pos >= 0 ) { in PHP_FUNCTION()
308 RETURN_LONG(ret_pos); in PHP_FUNCTION()
320ret_pos = grapheme_strpos_utf16(haystack, haystack_len, needle, needle_len, offset, NULL, 1 /* f_… in PHP_FUNCTION()
322 if ( ret_pos >= 0 ) { in PHP_FUNCTION()
323 RETURN_LONG(ret_pos); in PHP_FUNCTION()
548 int32_t ret_pos, uchar_pos; in strstr_common_handler() local
579ret_pos = grapheme_strpos_utf16(haystack, haystack_len, needle, needle_len, 0, &uchar_pos, f_ignor… in strstr_common_handler()
581 if ( ret_pos < 0 ) { in strstr_common_handler()
587 ret_pos = 0; in strstr_common_handler()
588 U8_FWD_N(haystack, ret_pos, haystack_len, uchar_pos); in strstr_common_handler()
591 RETURN_STRINGL(haystack, ret_pos); in strstr_common_handler()
593 RETURN_STRINGL(haystack + ret_pos, haystack_len - ret_pos); in strstr_common_handler()
618 int ret_pos = 0; in grapheme_extract_charcount_iter() local
629 for ( break_pos = ret_pos; break_pos < pos; ) { in grapheme_extract_charcount_iter()
646 ret_pos = break_pos; in grapheme_extract_charcount_iter()
649 return ret_pos; in grapheme_extract_charcount_iter()
658 int ret_pos = 0; in grapheme_extract_bytecount_iter() local
671 ret_pos = pos; in grapheme_extract_bytecount_iter()
674 return ret_pos; in grapheme_extract_bytecount_iter()
683 int ret_pos = 0; in grapheme_extract_count_iter() local
691 ret_pos = next_pos; in grapheme_extract_count_iter()
695 return ret_pos; in grapheme_extract_count_iter()
722 int ret_pos; in PHP_FUNCTION() local
827ret_pos = (*grapheme_extract_iters[extract_type])(bi, size, (unsigned char *)pstr, (int32_t)str_le… in PHP_FUNCTION()
833 ZVAL_LONG(next, start+ret_pos); in PHP_FUNCTION()
836 RETURN_STRINGL(((char *)pstr), ret_pos); in PHP_FUNCTION()