Home
last modified time | relevance | path

Searched refs:wordwrap (Results 1 – 17 of 17) sorted by last modified time

/PHP-7.3/ext/standard/
H A Dstring.c933 PHP_FUNCTION(wordwrap) in PHP_FUNCTION() argument
H A Dbasic_functions.c2749 PHP_FE(wordwrap, arginfo_wordwrap)
H A Dphp_string.h34 PHP_FUNCTION(wordwrap);
/PHP-7.3/ext/standard/tests/strings/
H A Dwordwrap_error.phpt2 Test wordwrap() function : error conditions
10 echo "*** Testing wordwrap() : error conditions ***\n";
14 var_dump( wordwrap() );
18 $str = 'testing wordwrap function';
24 var_dump( wordwrap($str, $width, $break, $cut, $extra_arg) );
32 var_dump( wordwrap($str, $width, $break, $cut) );
38 var_dump( wordwrap($str, $width, $break, $cut) );
44 var_dump( wordwrap($str, $width, $break, $cut) );
50 var_dump( wordwrap($str, $width, $break, $cut) );
55 *** Testing wordwrap() : error conditions ***
[all …]
H A Dwordwrap.phpt2 wordwrap() function
7 "12345 12345 12345 12345" === wordwrap("12345 12345 12345 12345")
12 "123ab123ab123" === wordwrap("123ab123ab123", 3, "ab")
13 "123ab123ab123" === wordwrap("123ab123ab123", 5, "ab")
14 "123ab 123ab123" === wordwrap("123 123ab123", 3, "ab")
15 "123ab123ab123" === wordwrap("123 123ab123", 5, "ab")
16 "123 123ab123" === wordwrap("123 123 123", 10, "ab")
18 "123ab123ab123" === wordwrap("123ab123ab123", 3, "ab", 1)
19 "123ab123ab123" === wordwrap("123ab123ab123", 5, "ab", 1)
24 "1ab2ab3ab4" === wordwrap("1234", 1, "ab", 1)
[all …]
H A Dwordwrap_variation1.phpt2 Test wordwrap() function : usage variations - unexpected values for str argument
11 * testing wordwrap() by providing different values for str argument
14 echo "*** Testing wordwrap() : usage variations ***\n";
77 // loop though each element of the array and check the working of wordwrap()
85 var_dump( wordwrap($str) );
86 var_dump( wordwrap($str, $width) );
87 var_dump( wordwrap($str, $width, $break) );
91 var_dump( wordwrap($str, $width, $break, $cut) );
95 var_dump( wordwrap($str, $width, $break, $cut) );
106 *** Testing wordwrap() : usage variations ***
[all …]
H A Dwordwrap_variation2.phpt108 wordwrap
117 wordwrap
124 wordwrap
196 wordwrap
203 wordwrap
212 wordwrap
219 wordwrap
267 wordwrap
276 wordwrap
324 wordwrap
[all …]
H A Dwordwrap_variation3.phpt13 echo "*** Testing wordwrap() : usage variations ***\n";
15 $str = 'testing wordwrap function';
85 var_dump( wordwrap($str, $width, $break) );
89 var_dump( wordwrap($str, $width, $break, $cut) );
104 *** Testing wordwrap() : usage variations ***
120 string(33) "testing-2345wordwrap-2345function"
121 string(33) "testing-2345wordwrap-2345function"
122 string(33) "testing-2345wordwrap-2345function"
128 string(33) "testing-10.5wordwrap-10.5function"
129 string(33) "testing-10.5wordwrap-10.5function"
[all …]
H A Dwordwrap_variation4.phpt2 Test wordwrap() function : usage variations - unexptected value for cut argument
11 * test wordwrap() by supplying different values for cut argument
14 echo "*** Testing wordwrap() : usage variations ***\n";
16 $str = 'testing wordwrap function';
68 // loop though each element of the array and check the working of wordwrap()
76 var_dump( wordwrap($str, $width, $break, $cut) );
87 *** Testing wordwrap() : usage variations ***
89 --- Testing wordwrap() by supplying different values for 'cut' argument ---
110 Warning: wordwrap() expects parameter 4 to be bool, array given in %s on line %d
114 Warning: wordwrap() expects parameter 4 to be bool, array given in %s on line %d
[all …]
H A Dwordwrap_basic.phpt2 Test wordwrap() function : basic functionality
10 echo "*** Testing wordwrap() : basic functionality ***\n";
17 // Calling wordwrap() with default arguments
18 var_dump( wordwrap($str) );
20 // Calling wordwrap() with all possible optional arguments
22 var_dump( wordwrap($str, $width) );
24 var_dump( wordwrap($str, $width, $break) );
26 // Calling wordwrap() with all arguments
30 var_dump( wordwrap($str, $width, $break, $cut) );
35 var_dump( wordwrap($str, $width, $break, $cut) );
[all …]
H A Dwordwrap_variation5.phpt2 Test wordwrap() function : usage variations - valid break arguments(spaces)
11 *test wordwrap() with break arguments as single spaces
14 echo "*** Testing wordwrap() : usage variations ***\n";
23 var_dump( wordwrap($str, $width) ); // default break and cut value
28 var_dump( wordwrap($str, $width, $break) );
29 var_dump( wordwrap($str, $width, $break1) );
33 var_dump( wordwrap($str, $width, $break, $cut) );
34 var_dump( wordwrap($str, $width, $break1, $cut) );
38 var_dump( wordwrap($str, $width, $break, $cut) );
39 var_dump( wordwrap($str, $width, $break1, $cut) );
[all …]
H A Dwordwrap_memory_limit.phpt2 No overflow should occur during the memory_limit check for wordwrap()
15 wordwrap($str, 1, $str2);
H A Dwordwrap_memory_limit_win32.phpt2 No overflow should occur during the memory_limit check for wordwrap()
15 wordwrap($str, 1, $str2);
H A Dbug28386.phpt2 Bug #28386 (wordwrap() wraps text 1 character too soon)
7 echo wordwrap($string, 9);
H A Dbug20927.phpt2 Bug #20927 (Segfault on wordwrap statement)
12 var_dump(wordwrap($string, $linelength, $break, 1));
/PHP-7.3/
H A D.gitattributes119 /ext/standard/tests/strings/wordwrap.phpt -crlf
/PHP-7.3/ext/phar/phar/
H A Dclicommand.inc239 return $b . wordwrap($r, $p, "\n".$sp);

Completed in 51 milliseconds