Lines Matching refs:str_len

403 	int str_len, sub_str_len, ustr_len;  in PHP_FUNCTION()  local
413 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sl|l", (char **)&str, &str_len, &lstart, &le… in PHP_FUNCTION()
421 if ( OUTSIDE_STRING(lstart, str_len) ) { in PHP_FUNCTION()
433 if ( grapheme_ascii_check(str, str_len) >= 0 ) { in PHP_FUNCTION()
434 …grapheme_substr_ascii((char *)str, str_len, start, length, ZEND_NUM_ARGS(), (char **) &sub_str, &s… in PHP_FUNCTION()
446 intl_convert_utf8_to_utf16(&ustr, &ustr_len, (char *)str, str_len, &status); in PHP_FUNCTION()
681 …eme_extract_charcount_iter(UBreakIterator *bi, int32_t csize, unsigned char *pstr, int32_t str_len) in grapheme_extract_charcount_iter() argument
702 U8_FWD_N(pstr, ret_pos, str_len, pos - prev_pos); 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
731 U8_FWD_N(pstr, ret_pos, str_len, pos - prev_pos); in grapheme_extract_bytecount_iter()
752 grapheme_extract_count_iter(UBreakIterator *bi, int32_t size, unsigned char *pstr, int32_t str_len) in grapheme_extract_count_iter() argument
771 U8_FWD_N(pstr, ret_pos, str_len, pos); in grapheme_extract_count_iter()
793 int str_len, ustr_len; in PHP_FUNCTION() local
804 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sl|llz", (char **)&str, &str_len, &size, &ex… in PHP_FUNCTION()
834 if ( lstart > INT32_MAX || lstart < 0 || lstart >= str_len ) { in PHP_FUNCTION()
854 unsigned char *str_end = str + str_len; in PHP_FUNCTION()
867 str_len -= (pstr - str); in PHP_FUNCTION()
873 if ( -1 != grapheme_ascii_check(pstr, size + 1 < str_len ? size + 1 : str_len ) ) { in PHP_FUNCTION()
874 long nsize = ( size < str_len ? size : str_len ); in PHP_FUNCTION()
885 intl_convert_utf8_to_utf16(&ustr, &ustr_len, (char *)pstr, str_len, &status ); in PHP_FUNCTION()
911 ret_pos = (*grapheme_extract_iters[extract_type])(bi, size, pstr, str_len); in PHP_FUNCTION()