Home
last modified time | relevance | path

Searched refs:pad_length (Results 1 – 5 of 5) sorted by relevance

/PHP-7.4/ext/standard/tests/strings/
H A Dstr_pad.phpt11 $pad_length = 20;
15 var_dump( str_pad($input_string, $pad_length, $pad_string, STR_PAD_LEFT) );
35 0, // pad_length < sizeof(input_string)
36 9, // pad_length <= sizeof(input_string)
37 10, // pad_length > sizeof(input_string)
38 16, // pad_length > sizeof(input_string)
41 /*loop through to use each variant of $pad_length on
44 foreach ($pad_lengths as $pad_length ) {
56 $pad_length = 16;
70 str_pad($input_tring, $pad_length, $pad_string, STR_PAD_LEFT, NULL );
[all …]
H A Dstr_pad_variation5.phpt2 Test str_pad() function : usage variations - unexpected large value for '$pad_length' argument
14 /* Prototype : string str_pad ( string $input , int $pad_length [, string $pad_string [, int $…
19 /* Test str_pad() function: with unexpected inputs for '$pad_length'
23 echo "*** Testing str_pad() function: with large value for for 'pad_length' argument ***\n";
27 $pad_length = PHP_INT_MAX - 16; /* zend_string header is 16 bytes */
28 var_dump( str_pad($input, $pad_length) );
32 *** Testing str_pad() function: with large value for for 'pad_length' argument ***
H A Dstristr_variation2.phpt68 //defining '$pad_length' argument
69 $pad_length = "20";
/PHP-7.4/ext/standard/
H A Dstring.c5848 zend_long pad_length; /* Length to pad to */ local
5860 Z_PARAM_LONG(pad_length)
5868 if (pad_length < 0 || (size_t)pad_length <= ZSTR_LEN(input)) {
5882 num_pad_chars = pad_length - ZSTR_LEN(input);
H A Dbasic_functions.c2432 ZEND_ARG_INFO(0, pad_length)

Completed in 29 milliseconds