Home
last modified time | relevance | path

Searched refs:length (Results 301 – 325 of 678) sorted by path

1...<<11121314151617181920>>...28

/php-src/ext/mbstring/
H A Dmbstring.h59 const char *input, size_t length,
62 const char *input, size_t length, const mbfl_encoding *to_encoding,
68 MBSTRING_API bool php_mb_check_encoding(const char *input, size_t length, const mbfl_encoding *enco…
H A Dmbstring.stub.php87 function mb_str_split(string $string, int $length = 1, ?string $encoding = null): array {} argument
114 function mb_substr(string $string, int $start, ?int $length = null, ?string $encoding = null): stri… argument
117 function mb_strcut(string $string, int $start, ?int $length = null, ?string $encoding = null): stri… argument
196 function mb_str_pad(string $string, int $length, string $pad_string = " ", int $pad_type = STR_PAD_… argument
H A Dmbstring_arginfo.h42 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, length, IS_LONG, 0, "1")
86 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, length, IS_LONG, 1, "null")
217 ZEND_ARG_TYPE_INFO(0, length, IS_LONG, 0)
/php-src/ext/mbstring/tests/
H A Dbug49354.phpt2 Bug #49354 (mb_strcut() cuts wrong length when offset is in the middle of a multibyte character)
H A Dbug54494.phpt20 $length = mb_strlen($string, $mode);
21 echo "Length: ", $length, "\n";
24 for ($i=0; $i < $length; $i++) {
36 $length = mb_strlen($string, $mode);
37 echo "Length: ", $length, "\n";
40 for ($i=0; $i < $length; $i++) {
H A Dencoding_tests.inc146 $length = min(rand(5,10), count($goodChars));
148 while ($length--) {
206 // `$startBytes` maps from first-byte values to the corresponding character length
207 // (For encodings where the first byte can tell you the length of a multi-byte
H A Dhz_encoding.phpt62 $length = 1; //min(rand(5,10), count($goodChars));
64 while ($length--) {
H A Diso2022jp_kddi_encoding.phpt162 $length = min(rand(5,10), count($good));
164 while ($length--) {
175 $length = min(rand(5,10), count($good));
177 while ($length--) {
H A Diso2022jp_ms_encoding.phpt135 $length = min(rand(5,10), count($good));
137 while ($length--) {
H A Dmb_decode_numericentity_large_ints.phpt36 …tity immediately after valid decimal entity which is just within maximum length", $ucs4_test1, "\x…
38 …g entity immediately after valid hex entity which is just within maximum length", $ucs4_test2, "\…
57 Starting entity immediately after valid decimal entity which is just within maximum length: 0000002…
58 Starting entity immediately after valid hex entity which is just within maximum length: 00000026000…
H A Dmb_encode_mimeheader_basic4.phpt56 // take a vastly larger number of bytes; make sure we don't overrun max line length
75 // without overrunning max line length
H A Dmb_str_pad.phpt43 echo "--- Edge cases pad length ---\n";
102 --- Edge cases pad length ---
H A Dmb_str_split_error_conditions.phpt10 // Invalid split length
51 mb_str_split(): Argument #2 ($length) must be greater than 0
52 mb_str_split(): Argument #2 ($length) must be greater than 0
H A Dmb_str_split_other.phpt127 mb_str_split(): Argument #2 ($length) is too large
H A Dmb_str_split_utf8_utf16.phpt12 /* 123 string and 4-bytes length character 0xf09280a9 */
15 /* 123 string and 4-bytes length character 0xf09280a9 head without tail */
H A Dmb_strcut_negative_length.phpt2 mb_strcut() negative length test
H A Dmb_strimwidth.phpt28 print "] length=" . mb_strlen($result, $encoding);
228 String length: 10
237 start=0 width=0 result=[2e00 2e00 2e00] length=3 width=3
238 start=0 width=1 result=[2e00 2e00 2e00] length=3 width=3
243 String length: 39
251 start=-30 width=5 result=[a4cf 2e 2e 2e] length=4 width=5
252 start=9 width=5 result=[a4cf 2e 2e 2e] length=4 width=5
255 start=39 width=10 result=[] length=0 width=0
263 start=1 width=0 result=[2e 2e 2e] length=3 width=3
265 start=0 width=10 result=[3f 3f 3f] length=3 width=3
[all …]
H A Dmb_stripos_variation5_Bug45923.phpt9 * The character length of $string_ascii and $string_mb is the same,
H A Dmb_strpos_variation5.phpt9 * The character length of $string_ascii and $string_mb is the same,
H A Dmb_strripos_variation5_Bug45923.phpt9 * The character length of $string_ascii and $string_mb is the same,
H A Dmb_substr_error2.phpt15 $length = 5;
19 var_dump( mb_substr($str, $start, $length, $encoding));
H A Dmb_substr_variation4.phpt34 if (strlen($a) == mb_strlen($b, 'UTF-8')) { // should return same length
37 echo "Difference in length of ASCII string and multibyte string\n";
H A Dmb_substr_variation5.phpt2 Test mb_substr() function : usage variations - pass different integers to $length arg
8 * Test how mb_substr() behaves when passed a range of integers as $length argument
35 if (strlen($a) == mb_strlen($b, 'UTF-8')) { // should return same length
38 echo "Difference in length of ASCII string and multibyte string\n";
H A Dmb_substr_variation6.phpt39 if (strlen($a) == mb_strlen($b, 'UTF-8')) { // should return same length
42 echo "Difference in length of ASCII string and multibyte string\n";
H A Dmb_substr_variation7.phpt2 Test mb_substr() function : usage variations - pass different integers to $length arg
8 * Test how mb_substr() behaves when passed a range of integers as $length argument
40 if (strlen($a) == mb_strlen($b, 'UTF-8')) { // should return same length
43 echo "Difference in length of ASCII string and multibyte string\n";

Completed in 61 milliseconds

1...<<11121314151617181920>>...28