Home
last modified time | relevance | path

Searched refs:str (Results 1 – 25 of 791) sorted by relevance

12345678910>>...32

/PHP-5.6/ext/filter/
H A Dlogical_filters.c89 if (str < end && *str >= '1' && *str <= '9') { in php_filter_parse_int()
102 if (*str >= '0' && *str <= '9') { in php_filter_parse_int()
126 if (*str >= '0' && *str <= '7') { in php_filter_parse_octal()
150 if (*str >= '0' && *str <= '9') { in php_filter_parse_hex()
341 if (str < end && (*str == '+' || *str == '-')) { in php_filter_float()
347 while (str < end && *str >= '0' && *str <= '9') { in php_filter_float()
351 if (str == end || *str == dec_sep || *str == 'e' || *str == 'E') { in php_filter_float()
358 while (str < end && *str >= '0' && *str <= '9') { in php_filter_float()
364 if (str < end && (*str == '+' || *str == '-')) { in php_filter_float()
367 while (str < end && *str >= '0' && *str <= '9') { in php_filter_float()
[all …]
/PHP-5.6/Zend/tests/
H A Dempty_str_offset.phpt8 $str = "test0123";
10 var_dump(empty($str[-1]));
11 var_dump(empty($str[0]));
12 var_dump(empty($str[1]));
13 var_dump(empty($str[4])); // 0
14 var_dump(empty($str[5])); // 1
15 var_dump(empty($str[8]));
16 var_dump(empty($str[10000]));
19 var_dump(empty($str['-1']));
20 var_dump(empty($str['0']));
[all …]
H A Disset_str_offset.phpt8 $str = "test0123";
10 var_dump(isset($str[-1]));
11 var_dump(isset($str[0]));
12 var_dump(isset($str[1]));
13 var_dump(isset($str[4])); // 0
14 var_dump(isset($str[5])); // 1
15 var_dump(isset($str[8]));
16 var_dump(isset($str[10000]));
19 var_dump(isset($str['-1']));
20 var_dump(isset($str['0']));
[all …]
H A Dbug48770.phpt9 public function func($str) {
10 var_dump(__METHOD__ .': '. $str);
12 private function func2($str) {
13 var_dump(__METHOD__ .': '. $str);
15 protected function func3($str) {
18 private function func22($str) {
24 public function func($str) {
34 private function func2($str) {
37 protected function func3($str) {
43 public function func($str) {
[all …]
H A Dbug48770_3.phpt9 public function func($str) {
10 var_dump(__METHOD__ .': '. $str);
12 private function func2($str) {
13 var_dump(__METHOD__ .': '. $str);
15 protected function func3($str) {
18 private function func22($str) {
24 public function func($str) {
29 private function func2($str) {
32 protected function func3($str) {
38 public function func($str) {
[all …]
H A Dbug48770_2.phpt9 public function func($str) {
10 var_dump(__METHOD__ .': '. $str);
12 private function func2($str) {
13 var_dump(__METHOD__ .': '. $str);
15 protected function func3($str) {
18 private function func22($str) {
24 public function func($str) {
30 private function func2($str) {
33 protected function func3($str) {
39 public function func($str) {
[all …]
H A Dstr_offset_001.phpt9 $str = "abc";
10 var_dump($str[-1]);
11 var_dump($str[0]);
12 var_dump($str[1]);
13 var_dump($str[2]);
18 foo($str[-1]);
19 foo($str[0]);
20 foo($str[1]);
21 foo($str[2]);
22 foo($str[3]);
[all …]
H A Doffset_string.phpt8 var_dump($str[1]);
9 var_dump($str[0.0836]);
10 var_dump($str[NULL]);
11 var_dump($str["run away"]);
12 var_dump($str["13"]);
13 var_dump($str["14.5"]);
16 var_dump($str[TRUE]);
17 var_dump($str[FALSE]);
20 var_dump($str[$fp]);
23 var_dump($str[$obj]);
[all …]
/PHP-5.6/Zend/
H A Dzend_string.h71 #define str_erealloc(str, new_len) \ argument
72 (IS_INTERNED(str) \
73 ? _str_erealloc(str, new_len, INTERNED_LEN(str)) \
74 : erealloc(str, new_len))
78 memcpy(buf, str, old_len);
82 #define str_estrndup(str, len) \ argument
83 (IS_INTERNED(str) ? (str) : estrndup((str), (len)))
85 #define str_strndup(str, len) \ argument
86 (IS_INTERNED(str) ? (str) : zend_strndup((str), (len)));
88 #define str_hash(str, len) \ argument
[all …]
/PHP-5.6/ext/mbstring/tests/
H A Dmb_preferred_mime_name.phpt15 echo "$str\n";
17 $str = mb_preferred_mime_name('SJIS');
18 echo "$str\n";
21 echo "$str\n";
24 echo "$str\n";
27 echo "$str\n";
29 $str = mb_preferred_mime_name('JIS');
30 echo "$str\n";
33 echo "$str\n";
36 echo "$str\n";
[all …]
H A Dmb_strimwidth.phpt21 $str = mb_strimwidth($euc_jp,-22, 100,'...','EUC-JP');
22 ($str === FALSE) ? print "4 OK\n" : print "NG: $str\n";
24 $str = mb_strimwidth($euc_jp, 100, -10,'...','EUC-JP');
25 ($str === FALSE) ? print "5 OK\n" : print "NG: $str\n";
27 $str = mb_strimwidth($euc_jp, -100, 10,'...','EUC-JP');
28 ($str === FALSE) ? print "6 OK\n" : print "NG: $str\n";
/PHP-5.6/ext/standard/tests/strings/
H A Dstrcspn_variation9.phpt46 foreach($strings as $str) {
47 echo "\n-- Iteration with str value \"$str\" --\n";
58 -- Iteration with str value "" --
61 -- Iteration with str value "" --
64 -- Iteration with str value "
86 -- Iteration with str value "hello�world
93 -- Iteration with str value "��" --
96 -- Iteration with str value "�hello�world�" --
99 -- Iteration with str value "�hello\0world�" --
102 -- Iteration with str value "hello�world" --
[all …]
H A Dstrspn_variation9.phpt46 foreach($strings as $str) {
47 echo "\n-- Iteration with str value \"$str\" --\n";
58 -- Iteration with str value "" --
61 -- Iteration with str value "" --
64 -- Iteration with str value "
86 -- Iteration with str value "hello�world
93 -- Iteration with str value "��" --
96 -- Iteration with str value "�hello�world�" --
99 -- Iteration with str value "�hello\0world�" --
102 -- Iteration with str value "hello�world" --
[all …]
H A Dsubstr_replace.phpt5 $str = "try this";
11 echo "substr_replace('$str', '$repl', $start)\n";
12 var_dump(substr_replace($str, $repl, $start));
33 $str = "try this";
50 $str = array("ala portokala");
78 $str = array("ala portokala");
89 $str = array("ala portokala", "try this");
152 $str = array("ala portokala");
227 $str = array("ala portokala");
303 $str = array("ala portokala");
[all …]
H A Dbug61038.phpt2 Bug #61038: unpack("a5", "str\0\0") does not work as expected
5 var_dump(unpack("a4", "str\0\0"));
6 var_dump(unpack("a5", "str\0\0"));
7 var_dump(unpack("a6", "str\0\0"));
8 var_dump(unpack("a*", "str\0\0"));
13 string(4) "str%c"
17 string(5) "str%c%c"
24 string(5) "str%c%c"
H A Dsubstr_count_variation_001.phpt8 $str = "this is a string";
9 var_dump( substr_count($str, "t", "5") );
11 var_dump( substr_count($str, "i", "5t") );
15 var_dump( substr_count($str, "t", "") );
16 var_dump( substr_count($str, "T", "") );
27 var_dump(substr_count($str, chr(128)));
28 var_dump(substr_count($str, chr(255)));
29 var_dump(substr_count($str, chr(256)));
46 $str = <<<EOD
48 var_dump(substr_count($str, "\0"));
[all …]
H A Dstrcspn_variation1.phpt108 -- Iteration with str value as "0"
113 -- Iteration with str value as "1"
208 -- Iteration with str value as ""
213 -- Iteration with str value as ""
218 -- Iteration with str value as "1"
223 -- Iteration with str value as ""
233 -- Iteration with str value as ""
238 -- Iteration with str value as ""
243 -- Iteration with str value as ""
253 -- Iteration with str value as ""
[all …]
H A Dstrspn_variation1.phpt108 -- Iteration with str value as "0"
113 -- Iteration with str value as "1"
208 -- Iteration with str value as ""
213 -- Iteration with str value as ""
218 -- Iteration with str value as "1"
223 -- Iteration with str value as ""
233 -- Iteration with str value as ""
238 -- Iteration with str value as ""
243 -- Iteration with str value as ""
253 -- Iteration with str value as ""
[all …]
H A Dstrtok_variation7.phpt5 /* Prototype : string strtok ( str $str, str $token )
16 $str = "this is a sample string";
20 var_dump( strtok($str, $token) );
22 $str = "extra string ".$str;
26 echo "\n-- Input str is \"$str\" --\n";
30 var_dump( strtok($str, $token) );
32 $str = $str." extra string";
49 -- Input str is "extra string this is a sample string" --
54 -- Input str is "extra string this is a sample string" --
59 -- Input str is "extra string this is a sample string" --
[all …]
H A Dstrtr_variation4.phpt2 Test strtr() function : usage variations - empty string & null for 'str' argument
5 /* Prototype : string strtr(string $str, string $from[, string $to]);
6 string strtr(string $str, array $replace_pairs);
7 * Description: Translates characters in str using given translation tables
12 * empty string & null for 'str' argument and
16 echo "*** Testing strtr() : empty string & null for 'str' arg ***\n";
24 //array of string inputs for $str
44 $str = $str_arr[$index]; //getting the array element in 'str' variable
47 var_dump( strtr($str, $from, $to) );
50 var_dump( strtr($str, $replace_pairs) );
[all …]
/PHP-5.6/ext/xmlrpc/libxmlrpc/
H A Dsimplestring.c115 string->str = (char*)malloc(SIMPLESTRING_INCR); in simplestring_init_str()
116 if(string->str) { in simplestring_init_str()
117 string->str[0] = 0; in simplestring_init_str()
144 if(string->str) { in simplestring_clear()
145 string->str[0] = 0; in simplestring_clear()
169 if(string && string->str) { in simplestring_free()
170 my_free(string->str); in simplestring_free()
200 if(!target->str) { in simplestring_addn()
222 target->str = (char*)realloc(target->str, newsize); in simplestring_addn()
224 target->size = target->str ? newsize : 0; in simplestring_addn()
[all …]
/PHP-5.6/sapi/phpdbg/
H A Dphpdbg_parser.y79 $$.file.name = $2.str;
84 $$.file.name = $1.str;
109 $$.method.class = $1.str;
110 $$.method.name = $3.str;
114 $$.method.class = $1.str;
115 $$.method.name = $3.str;
120 $$.str = $1.str;
126 $$.str = $2.str;
141 $$.str = $2.str;
146 $$.str = $2.str;
[all …]
H A Dphpdbg_utils.c83 if (!str) in phpdbg_is_numeric()
86 for (; *str; str++) { in phpdbg_is_numeric()
87 if (isspace(*str) || *str == '-') { in phpdbg_is_numeric()
97 if (!str) in phpdbg_is_empty()
100 for (; *str; str++) { in phpdbg_is_empty()
101 if (isspace(*str)) { in phpdbg_is_empty()
111 return str[0] && str[1] && memcmp(str, "0x", 2) == 0; in phpdbg_is_addr()
126 if (!sep || sep == str || sep+2 == str+len-1) { in phpdbg_is_class_method()
133 str++; in phpdbg_is_class_method()
137 *class = estrndup(str, sep - str); in phpdbg_is_class_method()
[all …]
/PHP-5.6/ext/standard/
H A Dcyr_convert.c204 static char * php_convert_cyr_string(unsigned char *str, int length, char from, char to TSRMLS_DC) in php_convert_cyr_string() argument
258 if (!str) in php_convert_cyr_string()
259 return (char *)str; in php_convert_cyr_string()
263 tmp = (from_table == NULL)? str[i] : from_table[ str[i] ]; in php_convert_cyr_string()
264 str[i] = (to_table == NULL) ? tmp : to_table[tmp + 256]; in php_convert_cyr_string()
266 return (char *)str; in php_convert_cyr_string()
276 unsigned char *str; in PHP_FUNCTION() local
282 str = (unsigned char*) estrndup(input, input_len); in PHP_FUNCTION()
284 php_convert_cyr_string(str, input_len, fr_cs[0], to_cs[0] TSRMLS_CC); in PHP_FUNCTION()
285 RETVAL_STRING((char *)str, 0); in PHP_FUNCTION()
/PHP-5.6/ext/zip/lib/
H A Dzip_set_name.c47 struct zip_string *str; in _zip_set_name() local
63 …if ((str=_zip_string_new((const zip_uint8_t *)name, (zip_uint16_t)strlen(name), flags, &za->error)… in _zip_set_name()
65 …if ((flags & ZIP_FL_ENCODING_ALL) == ZIP_FL_ENC_GUESS && _zip_guess_encoding(str, ZIP_ENCODING_UNK… in _zip_set_name()
66 str->encoding = ZIP_ENCODING_UTF8_KNOWN; in _zip_set_name()
69 str = NULL; in _zip_set_name()
73 _zip_string_free(str); in _zip_set_name()
80 _zip_string_free(str); in _zip_set_name()
93 changed = !_zip_string_equal(e->orig->filename, str); in _zip_set_name()
101 _zip_string_free(str); in _zip_set_name()
105 e->changes->filename = str; in _zip_set_name()
[all …]

Completed in 58 milliseconds

12345678910>>...32