Home
last modified time | relevance | path

Searched refs:chunklen (Results 1 – 11 of 11) sorted by relevance

/php-src/ext/standard/tests/strings/
H A Dchunk_split_basic.phpt7 * arguments as well as with default arguments chunklen and ending
15 $chunklen = 2;
20 var_dump( chunk_split($str, $chunklen, $ending) );
25 var_dump( chunk_split($str, $chunklen) );
28 //Calling chunk_split() with default chunklen and ending string
29 echo "-- Testing chunk_split() with default chunklen and ending string --\n";
44 -- Testing chunk_split() with default chunklen and ending string --
H A Dchunk_split_variation13.phpt2 Test chunk_split() function : usage variations - default 'chunklen' with long string as 'str'argume…
6 * passing long string as 'str' and testing default value of chunklen which is 76
9 echo "*** Testing chunk_split() : default 'chunklen' with long string 'str' ***\n";
17 //loop through each element of values for 'str' and default value of 'chunklen'
26 *** Testing chunk_split() : default 'chunklen' with long string 'str' ***
H A Dchunk_split_variation5.phpt2 Test chunk_split() function : usage variations - different integer values for 'chunklen' argument(B…
10 * passsing different integer values for 'chunklen' argument to chunk_split()
14 echo "*** Testing chunk_split() : different integer values for 'chunklen' ***\n";
20 // different values for chunklen
46 *** Testing chunk_split() : different integer values for 'chunklen' ***
H A Dchunk_split_variation8.phpt2 Test chunk_split() function : usage variations - different integer values for 'chunklen' with hered…
10 * passing different integer values for 'chunklen' and heredoc string for 'str' to chunk_split()
13 echo "*** Testing chunk_split() : different 'chunklen' with heredoc 'str' ***\n";
26 // different values for 'chunklen'
40 // loop through each element of values for 'chunklen'
54 *** Testing chunk_split() : different 'chunklen' with heredoc 'str' ***
H A Dchunk_split_variation6.phpt7 * 'chunklen' is set to 7 and 'ending' is '):('
13 $chunklen = 7;
37 var_dump( chunk_split($values[$count], $chunklen, $ending) );
H A Dchunk_split_variation7.phpt7 * here 'chunklen' is set to 5 and 'ending' is "????"
13 $chunklen = 5;
35 var_dump( chunk_split( $values[$count], $chunklen, $ending) );
H A Dchunk_split_variation4.phpt7 * with 'chunklen' 4 and default value of 'ending' that is "\r\n"
13 $chunklen = 4;
75 var_dump( chunk_split( $str, $chunklen) );
H A Dchunk_split_variation11.phpt7 * 'chunklen' is set to 6E0 for this testcase
19 $chunklen = 6E+0;
35 var_dump( chunk_split($heredoc_str, $chunklen, $values[$count]) );
H A Dchunk_split_variation9.phpt7 * here 'chunklen' is set to 6.5
14 $chunklen = 6;
41 var_dump( chunk_split($str, $chunklen, $values[$count]) );
H A Dchunk_split_variation12.phpt7 * 'chunklen' argument is set to 10
13 $chunklen = 10;
74 var_dump( chunk_split( $str, $chunklen, $value) );
/php-src/ext/standard/
H A Dstring.c2158 …g *php_chunk_split(const char *src, size_t srclen, const char *end, size_t endlen, size_t chunklen) argument
2166 chunks = srclen / chunklen;
2167 restlen = srclen - chunks * chunklen; /* srclen % chunklen */
2176 for (p = src, q = ZSTR_VAL(dest); p < (src + srclen - chunklen + 1); ) {
2177 q = zend_mempcpy(q, p, chunklen);
2179 p += chunklen;
2200 zend_long chunklen = 76; local
2206 Z_PARAM_LONG(chunklen)
2210 if (chunklen <= 0) {
2215 if ((size_t)chunklen > ZSTR_LEN(str)) {
[all …]

Completed in 37 milliseconds