Home
last modified time | relevance | path

Searched refs:strcspn (Results 1 – 23 of 23) sorted by relevance

/php-src/ext/standard/tests/strings/
H A Dstrcspn_basic.phpt2 Test strcspn() function : basic functionality
6 * Testing strcspn() : basic functionality
9 echo "*** Testing strcspn() : basic functionality ***\n";
18 // Calling strcspn() with all possible arguments
19 var_dump( strcspn($str, $mask, $start, $len) );
21 // Calling strcspn() with three arguments
22 var_dump( strcspn($str, $mask, $start) );
24 // Calling strcspn() with default arguments
25 var_dump( strcspn($str, $mask) );
30 *** Testing strcspn() : basic functionality ***
H A Dbug39032.phpt2 Bug #39032 (strcspn() stops on null character)
6 var_dump(strcspn(chr(0),"x"));
7 var_dump(strcspn(chr(0),""));
8 var_dump(strcspn(chr(0),"qweqwe"));
9 var_dump(strcspn(chr(1),"qweqwe"));
H A Dstrcspn.phpt2 Test strcspn() behavior
9 var_dump(strcspn($a,$b));
10 var_dump(strcspn($a,$b,9));
11 var_dump(strcspn($a,$b,9,6));
12 var_dump(strcspn('a', 'B', 1, 2147483647));
H A Dstrcspn_variation9.phpt2 Test strcspn() function : usage variations - different strings with default start and len args
5 /* Prototype : proto int strcspn(string str, string mask [, int start [, int len]])
7 … If start or/and length is provided works like strcspn(substr($s,$start,$len),$bad_chars)
13 * Testing strcspn() : with different strings as str argument and default start and len args
16 echo "*** Testing strcspn() : with different str and default start and len args ***\n";
49 //calling strcspn() with default arguments
50 var_dump( strcspn($str,$mask) );
56 *** Testing strcspn() : with different str and default start and len args ***
H A Dstrcspn_variation5.phpt2 Test strcspn() function : usage variations - with heredoc strings with default start and len args
5 /* Prototype : proto int strcspn(string str, string mask [, int start [, int len]])
7 … If start or/and length is provided works like strcspn(substr($s,$start,$len),$bad_chars)
13 * Testing strcspn() : with different heredoc strings as str argument
16 echo "*** Testing strcspn() : with heredoc strings ***\n";
70 var_dump( strcspn($str,$mask) ); // with default start and len values
76 *** Testing strcspn() : with heredoc strings ***
H A Dstrcspn_variation6.phpt2 Test strcspn() function : usage variations - with heredoc strings, varying mask & default start and…
6 * Testing strcspn() : with heredoc string, varying mask and default start and len arguments
9 echo "*** Testing strcspn() : with different mask strings ***\n";
77 var_dump( strcspn($str,$mask) ); // with default start and len value
85 *** Testing strcspn() : with different mask strings ***
H A Dstrcspn_variation10.phpt2 Test strcspn() function : usage variations - with varying mask & default start and len args
6 * Testing strcspn() : with varying mask and default start and len arguments
9 echo "*** Testing strcspn() : with different mask strings and default start and len arguments ***\n…
52 var_dump( strcspn($str,$mask) );
60 *** Testing strcspn() : with different mask strings and default start and len arguments ***
H A Dstrcspn_variation11.phpt2 Test strcspn() function : usage variations - with varying start and default len args
6 * Testing strcspn() : with varying start and default len arguments
9 echo "*** Testing strcspn() : with different start and default len values ***\n";
65 var_dump( strcspn($str,$mask,$start) );
74 *** Testing strcspn() : with different start and default len values ***
H A Dbug40754.phpt11 var_dump(strcspn("abcde", "abc", $v, $v));
H A Dstrcspn_variation12.phpt2 Test strcspn() function : usage variations - with varying start and len args
6 * Testing strcspn() : with varying start and len arguments
9 echo "*** Testing strcspn() : with different start and len values ***\n";
66 var_dump( strcspn($str,$mask,$start,$len) );
76 *** Testing strcspn() : with different start and len values ***
/php-src/ext/dom/tests/
H A DDOMXPath_quote.phpt35 $bytesUntilSingleQuote = \strcspn($string, '\'');
36 $bytesUntilDoubleQuote = \strcspn($string, '"');
/php-src/ext/fileinfo/libmagic/
H A Dprint.c302 pp[strcspn(pp, "\n")] = '\0'; in file_fmtdatetime()
H A Dsoftmagic.c673 str[strcspn(str, "\r\n")] = '\0'; in mprint()
890 p->s[strcspn(p->s, "\r\n")] = '\0'; in moffset()
/php-src/ext/dom/
H A Dhtml5_serializer.c76 size_t chunk_length = strcspn(content, mask); in dom_html5_escape_string()
H A Dxml_serializer.c481 size_t chunk_length = strcspn(content, mask); in dom_xml_common_text_serialization()
/php-src/ext/standard/
H A Dcrypt_sha256.c365 salt_len = MIN(strcspn(salt, "$"), SALT_LEN_MAX); in php_sha256_crypt_r()
H A Dcrypt_sha512.c403 salt_len = MIN(strcspn(salt, "$"), SALT_LEN_MAX); in php_sha512_crypt_r()
H A Dbasic_functions.stub.php2321 function strcspn(string $string, string $characters, int $offset = 0, ?int $length = null): int {}
H A Dbasic_functions_arginfo.h2544 ZEND_FUNCTION(strcspn);
H A Dstring.c276 PHP_FUNCTION(strcspn) in PHP_FUNCTION() argument
/php-src/
H A DNEWS233 . Fixed bug GH-12592 (strcspn() odd behaviour with NUL bytes and empty mask).
H A DUPGRADING141 . strcspn() with empty $characters now returns the length of the string instead
653 . The performance of strspn() and strcspn() is greatly improved.
/php-src/ext/opcache/jit/ir/dynasm/
H A Dminilua.c750 size_t len=strcspn(source,"\n\r");

Completed in 93 milliseconds