Home
last modified time | relevance | path

Searched refs:wordwrap (Results 1 – 16 of 16) sorted by relevance

/PHP-5.5/ext/standard/tests/strings/
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_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_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_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_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_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_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_variation4.phpt2 Test wordwrap() function : usage variations - unexptected value for cut argument
5 /* Prototype : string wordwrap ( string $str [, int $width [, string $break [, bool $cut]]] )
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 boolean, array given in %s on line %d
[all …]
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-5.5/ext/standard/
H A Dphp_string.h38 PHP_FUNCTION(wordwrap);
H A Dstring.c890 PHP_FUNCTION(wordwrap) in PHP_FUNCTION() argument
H A Dbasic_functions.c2717 PHP_FE(wordwrap, arginfo_wordwrap)
/PHP-5.5/ext/phar/phar/
H A Dclicommand.inc239 return $b . wordwrap($r, $p, "\n".$sp);
/PHP-5.5/
H A D.gitattributes141 /ext/standard/tests/strings/wordwrap.phpt -crlf
H A DNEWS5517 - Fixed bug #49361 (wordwrap() wraps incorrectly on end of line boundaries).
7203 - Fixed "Floating point exception" inside wordwrap().
8261 - Fixed overflow on 64bit systems in str_repeat() and wordwrap(). (Stefan E.)
8470 - Fixed bug #37846 (wordwrap() wraps incorrectly). (ddk at krasn dot ru, Tony)
8647 - Added overflow checks to wordwrap() function. (Ilia)

Completed in 77 milliseconds