Lines Matching refs:str_len
379 size_t str_len; in PHP_FUNCTION() local
391 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "sl|l!", &str, &str_len, &lstart, &length, &no_length) … in PHP_FUNCTION()
397 if ( OUTSIDE_STRING(lstart, str_len)) { in PHP_FUNCTION()
406 length = str_len; in PHP_FUNCTION()
417 if ( grapheme_ascii_check((unsigned char *)str, str_len) >= 0 ) { in PHP_FUNCTION()
420 grapheme_substr_ascii(str, str_len, start, (int32_t)length, &sub_str, &asub_str_len); in PHP_FUNCTION()
433 intl_convert_utf8_to_utf16(&ustr, &ustr_len, str, str_len, &status); in PHP_FUNCTION()
489 if (length >= (int32_t)str_len) { in PHP_FUNCTION()
678 …eme_extract_charcount_iter(UBreakIterator *bi, int32_t csize, unsigned char *pstr, int32_t str_len) in grapheme_extract_charcount_iter() argument
695 U8_FWD_1(pstr, break_pos, str_len); in grapheme_extract_charcount_iter()
718 …eme_extract_bytecount_iter(UBreakIterator *bi, int32_t bsize, unsigned char *pstr, int32_t str_len) in grapheme_extract_bytecount_iter() argument
743 grapheme_extract_count_iter(UBreakIterator *bi, int32_t size, unsigned char *pstr, int32_t str_len) in grapheme_extract_count_iter() argument
778 size_t str_len; in PHP_FUNCTION() local
789 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "sl|llz", &str, &str_len, &size, &extract_type, &lstart… in PHP_FUNCTION()
815 if ( lstart > INT32_MAX || lstart < 0 || lstart >= str_len ) { in PHP_FUNCTION()
835 char *str_end = str + str_len; in PHP_FUNCTION()
848 str_len -= (pstr - str); in PHP_FUNCTION()
854 if ( -1 != grapheme_ascii_check((unsigned char *)pstr, MIN(size + 1, str_len)) ) { in PHP_FUNCTION()
855 size_t nsize = MIN(size, str_len); in PHP_FUNCTION()
863 utext_openUTF8(&ut, pstr, str_len, &status); in PHP_FUNCTION()
885 …t_pos = (*grapheme_extract_iters[extract_type])(bi, size, (unsigned char *)pstr, (int32_t)str_len); in PHP_FUNCTION()