Home
last modified time | relevance | path

Searched refs:length (Results 126 – 150 of 588) sorted by path

12345678910>>...24

/PHP-7.4/ext/iconv/tests/
H A Diconv_strpos_variation5.phpt19 * The character length of $string_ascii and $string_mb is the same,
H A Diconv_strrpos-charset-length-cve-2007-4840.phpt2 iconv_strrpos() charset parameter length checks (CVE-2007-4840)
11 Warning: iconv_strrpos(): Charset parameter exceeds the maximum allowed length of %d characters in …
H A Diconv_substr-charset-length-cve-2007-4783.phpt2 iconv_substr() charset parameter length checks (CVE-2007-4783)
12 Warning: iconv_substr(): Charset parameter exceeds the maximum allowed length of %d characters in %…
H A Diconv_substr_basic.phpt14 /* Prototype : string iconv_substr(string str, int offset, [int length, string charset])
H A Diconv_substr_error2.phpt10 /* Prototype : string iconv_substr(string str, int offset, [int length, string charset])
23 $length = 5;
26 var_dump( iconv_substr($str, $start, $length, $encoding));
H A Dob_iconv_handler-charset-length-cve-2007-4840.phpt2 ob_iconv_handler() charset parameter length checks (CVE-2007-4840)
/PHP-7.4/ext/intl/calendar/
H A Dcalendar_methods.cpp108 int32_t length; in snext() local
109 const UChar* str = uenum_unext(uenum, &length, &status); in snext()
113 return &unistr.setTo(str, length); in snext()
118 int32_t length = -1; in next() local
119 const char* str = uenum_next(uenum, &length, &status); in next()
125 *resultLength = (length == -1) ? (int32_t)strlen(str) : length; in next()
/PHP-7.4/ext/intl/collator/
H A Dcollator_is_numeric.c72 size_t length = u - nstart; in collator_u_strtod() local
76 if (length < sizeof(buf)) { in collator_u_strtod()
79 numbuf = (char *) do_alloca(length + 1, use_heap); in collator_u_strtod()
214 zend_uchar collator_is_numeric( UChar *str, int32_t length, zend_long *lval, double *dval, int allo… in collator_is_numeric() argument
221 if (!length) { in collator_is_numeric()
226 if (length>=2 && str[0]=='0' && (str[1]=='x' || str[1]=='X')) { in collator_is_numeric()
233 if (end_ptr_long == str+length) { /* integer string */ in collator_is_numeric()
254 if (end_ptr_double == str+length) { /* floating point string */ in collator_is_numeric()
H A Dcollator_is_numeric.h24 zend_uchar collator_is_numeric( UChar *str, int32_t length, zend_long *lval, double *dval, int allo…
/PHP-7.4/ext/intl/converter/
H A Dconverter.c223 const char *codeUnits, int32_t length, in php_converter_to_u_callback() argument
237 ZVAL_STRINGL(&zargs[2], codeUnits, length); in php_converter_to_u_callback()
306 const UChar *codeUnits, int32_t length, UChar32 codePoint, in php_converter_from_u_callback() argument
317 while (i < length) { in php_converter_from_u_callback()
319 U16_NEXT(codeUnits, i, length, c); in php_converter_from_u_callback()
/PHP-7.4/ext/intl/dateformat/
H A Ddateformat_attr.c89 uint32_t length = USIZE( value_buf ); in PHP_FUNCTION() local
106length = udat_toPattern(DATE_FORMAT_OBJECT(dfo), is_pattern_localized, value, length, &INTL_DATA_E… in PHP_FUNCTION()
107 if(INTL_DATA_ERROR_CODE(dfo) == U_BUFFER_OVERFLOW_ERROR && length >= USIZE( value_buf )) { in PHP_FUNCTION()
108 ++length; /* to avoid U_STRING_NOT_TERMINATED_WARNING */ in PHP_FUNCTION()
110 value = eumalloc(length); in PHP_FUNCTION()
111length = udat_toPattern(DATE_FORMAT_OBJECT(dfo), is_pattern_localized, value, length, &INTL_DATA_E… in PHP_FUNCTION()
119 INTL_METHOD_RETVAL_UTF8( dfo, value, length, ( value != value_buf ) ); in PHP_FUNCTION()
/PHP-7.4/ext/intl/formatter/
H A Dformatter_attr.c108 int32_t length = 0; in PHP_FUNCTION() local
128 value = eumalloc(length); in PHP_FUNCTION()
129length = unum_getTextAttribute( FORMATTER_OBJECT(nfo), attribute, value, length, &INTL_DATA_ERROR_… in PHP_FUNCTION()
253 uint32_t length = USIZE(value_buf); in PHP_FUNCTION() local
274length = unum_getSymbol(FORMATTER_OBJECT(nfo), symbol, value_buf, length, &INTL_DATA_ERROR_CODE(nf… in PHP_FUNCTION()
278 value = eumalloc(length); in PHP_FUNCTION()
279 length = unum_getSymbol(FORMATTER_OBJECT(nfo), symbol, value, length, &INTL_DATA_ERROR_CODE(nfo)); in PHP_FUNCTION()
346 uint32_t length = USIZE( value_buf ); in PHP_FUNCTION() local
363 length = unum_toPattern(FORMATTER_OBJECT(nfo), 0, value, length, &INTL_DATA_ERROR_CODE(nfo)); in PHP_FUNCTION()
367 value = eumalloc(length); in PHP_FUNCTION()
[all …]
/PHP-7.4/ext/intl/grapheme/
H A Dgrapheme_string.c383 zend_long lstart = 0, length = 0; in PHP_FUNCTION() local
408 length = str_len; in PHP_FUNCTION()
411 if(length < INT32_MIN) { in PHP_FUNCTION()
412 length = INT32_MIN; in PHP_FUNCTION()
413 } else if(length > INT32_MAX) { in PHP_FUNCTION()
414 length = INT32_MAX; in PHP_FUNCTION()
518 if(length == 0) { in PHP_FUNCTION()
529 if ( length < 0 ) { in PHP_FUNCTION()
541 while ( length ) { in PHP_FUNCTION()
548 length += iter_val; in PHP_FUNCTION()
[all …]
/PHP-7.4/ext/intl/
H A Dintl_convertcpp.cpp67 int32_t capacity = from.length() * 3; in intl_charFromString()
77 u_strToUTF8WithSub(ZSTR_VAL(u8res), capacity, &actual_len, utf16buf, from.length(), in intl_charFromString()
H A Dphp_intl.c225 ZEND_ARG_INFO(0, length)
/PHP-7.4/ext/intl/msgformat/
H A Dmsgformat_helpers.cpp183 …e::Type*)zend_hash_str_find_ptr(ret, (char*)argName.getBuffer(), argName.length() * sizeof(UChar))… in umsg_parse_format()
186 …::Type*)zend_hash_str_update_mem(ret, (char*)argName.getBuffer(), argName.length() * sizeof(UChar), in umsg_parse_format()
431 …attable::Type*)zend_hash_str_find_ptr(types, (char*)key.getBuffer(), key.length() * sizeof(UChar)); in umsg_format_helper()
611 *formatted_len = resultStr.length(); in umsg_format_helper()
666 u8str = intl_convert_utf16_to_utf8(temp.getBuffer(), temp.length(), status); in umsg_parse_helper()
/PHP-7.4/ext/intl/resourcebundle/
H A Dresourcebundle_iterator.c85 return (iterator->i < iterator->length) ? SUCCESS : FAILURE; in resourcebundle_iterator_has_more()
170 iterator->length = ures_getSize( rb->me ); in resourcebundle_get_iterator()
H A Dresourcebundle_iterator.h28 zend_long length; member
/PHP-7.4/ext/intl/tests/
H A Dbug55562.phpt2 grapheme_substr() - Bug55562 - grapheme_substr() returns false if length parameter is to large
H A Dbug62759.phpt23 string(65) "grapheme_substr: length is beyond start: U_ILLEGAL_ARGUMENT_ERROR"
H A Dgrapheme.phpt406 $res_str .= " with length $test[2]";
958 function grapheme_substr($string, $start, $length = -1) {}
974 substring of "Abc" from "1" - grapheme_substr with length 1 = b == b
975 substring of "abc" from "0" - grapheme_substr with length 2 = ab == ab
976 substring of "Abc" from "-4" - grapheme_substr with length 1 = false == false
977 substring of "ababc" from "1" - grapheme_substr with length 2 = ba == ba
978 substring of "ababc" from "0" - grapheme_substr with length 10 = ababc == ababc
983 substring of "aa%CC%8Abco%CC%88Opq" from "5" - grapheme_substr with length -3 = ==
993 substring of "aa%CC%8Abco%CC%88Opq" from "0" - grapheme_substr with length -8 = ==
1012 substring of "aa%CC%8Abco%CC%88Opq" from "-8" - grapheme_substr with length 0 = ==
[all …]
H A Dgrapheme2.phpt406 $res_str .= " with length $test[2]";
958 function grapheme_substr($string, $start, $length = -1) {}
974 substring of "Abc" from "1" - grapheme_substr with length 1 = b == b
975 substring of "abc" from "0" - grapheme_substr with length 2 = ab == ab
976 substring of "Abc" from "-4" - grapheme_substr with length 1 = false == false
977 substring of "ababc" from "1" - grapheme_substr with length 2 = ba == ba
978 substring of "ababc" from "0" - grapheme_substr with length 10 = ababc == ababc
983 substring of "aa%CC%8Abco%CC%88Opq" from "5" - grapheme_substr with length -3 = ==
993 substring of "aa%CC%8Abco%CC%88Opq" from "0" - grapheme_substr with length -8 = ==
1012 substring of "aa%CC%8Abco%CC%88Opq" from "-8" - grapheme_substr with length 0 = ==
[all …]
H A Dregression_sort_eq.phpt8 * Test sorting strings that have different length but otherwise equal.
27 // Each array contains equal strings that differ only in their length.
H A Dregression_sortwsk_eq.phpt8 * Test sorting strings that have different length but otherwise equal.
27 // Each array contains equal strings that differ only in their length.
H A Dresourcebundle_arrayaccess.phpt12 printf( "length: %d\n", count($r) );
30 length: 6

Completed in 59 milliseconds

12345678910>>...24