Home
last modified time | relevance | path

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

12345678910>>...30

/PHP-5.4/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 …]
H A Dsanitizing_filters.c32 smart_str str = {0}; in php_filter_encode_html() local
53 smart_str_0(&str); in php_filter_encode_html()
55 Z_STRVAL_P(value) = str.c; in php_filter_encode_html()
56 Z_STRLEN_P(value) = str.len; in php_filter_encode_html()
69 unsigned char *str, *p; in php_filter_encode_url() local
107 Z_STRLEN_P(value) = p - str; in php_filter_encode_url()
112 unsigned char *buf, *str; in php_filter_strip() local
128 buf[c] = str[i]; in php_filter_strip()
158 unsigned char *buf, *str; in filter_map_apply() local
165 if ((*map)[str[i]]) { in filter_map_apply()
[all …]
/PHP-5.4/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.4/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.4/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 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 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 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 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 …]
H A Dparse_str_basic4.phpt5 /* Prototype : void parse_str ( string $str [, array &$arr ] )
11 $str = "arr[1=sid&arr[4][2=fred";
12 var_dump(parse_str($str, $res));
15 $str = "arr1]=sid&arr[4]2]=fred";
16 var_dump(parse_str($str, $res));
19 $str = "arr[one=sid&arr[4][two=fred";
20 var_dump(parse_str($str, $res));
24 $str = "first=%41&second=%a&third=%b";
25 var_dump(parse_str($str));
29 $str = "arr.test[1]=sid&arr test[4][two]=fred";
[all …]
/PHP-5.4/ext/xmlrpc/libxmlrpc/
H A Dsimplestring.c114 string->str = (char*)malloc(SIMPLESTRING_INCR); in simplestring_init_str()
115 if(string->str) { in simplestring_init_str()
116 string->str[0] = 0; in simplestring_init_str()
143 if(string->str) { in simplestring_clear()
144 string->str[0] = 0; in simplestring_clear()
168 if(string && string->str) { in simplestring_free()
169 my_free(string->str); in simplestring_free()
195 if(!target->str) { in simplestring_addn()
205 target->str = (char*)realloc(target->str, newsize); in simplestring_addn()
207 target->size = target->str ? newsize : 0; in simplestring_addn()
[all …]
/PHP-5.4/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()
H A Dbase64.c56 PHPAPI unsigned char *php_base64_encode(const unsigned char *str, int length, int *ret_length) /* {… in php_base64_encode() argument
58 const unsigned char *current = str; in php_base64_encode()
137 PHPAPI unsigned char *php_base64_decode(const unsigned char *str, int length, int *ret_length) /* {… in php_base64_decode() argument
139 return php_base64_decode_ex(str, length, ret_length, 0); in php_base64_decode()
145 const unsigned char *current = str; in php_base64_decode_ex()
222 char *str; in PHP_FUNCTION() local
226 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &str, &str_len) == FAILURE) { in PHP_FUNCTION()
229 result = php_base64_encode((unsigned char*)str, str_len, &ret_length); in PHP_FUNCTION()
242 char *str; in PHP_FUNCTION() local
247 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|b", &str, &str_len, &strict) == FAILURE) { in PHP_FUNCTION()
[all …]
/PHP-5.4/ext/iconv/tests/
H A Diconv_substr.phpt9 function hexdump($str) {
10 $len = strlen($str);
12 printf("%02x", ord($str[$i]));
17 function foo($str, $offset, $len, $charset) {
18 hexdump(substr($str, $offset, $len));
19 hexdump(iconv_substr($str, $offset, $len, $charset));
22 function bar($str, $offset, $len = false) {
24 var_dump(substr($str, $offset));
25 var_dump(iconv_substr($str, $offset));
27 var_dump(substr($str, $offset, $len));
[all …]
/PHP-5.4/ext/mysqlnd/
H A Dmysqlnd_bt.c31 *str = (char*)erealloc(*str, *len + 1 + 1); \
32 (*str)[(*len)++] = chr
37 *str = (char*)erealloc(*str, *len + l + 1); \
85 char **str; in mysqlnd_build_trace_args() local
88 str = va_arg(args, char**); in mysqlnd_build_trace_args()
219 char *s_tmp, **str; in mysqlnd_build_trace_string() local
276 *str = (char*)erealloc(*str, *len + 1 + 1); \
277 (*str)[(*len)++] = chr
282 *str = (char*)erealloc(*str, *len + l + 1); \
300 char **str; in mysqlnd_build_trace_args() local
[all …]

Completed in 50 milliseconds

12345678910>>...30