Home
last modified time | relevance | path

Searched refs:token (Results 1 – 25 of 48) sorted by relevance

12

/PHP-5.4/Zend/
H A Dzend_highlight.c87 zval token; in zend_highlight() local
95 token.type = 0; in zend_highlight()
119 token.type = 0; in zend_highlight()
123 if (token.type == 0) { in zend_highlight()
157 efree(token.value.str.val); in zend_highlight()
159 token.type = 0; in zend_highlight()
171 zval token; in zend_strip() local
175 token.type = 0; in zend_strip()
186 token.type = 0; in zend_strip()
198 token.type = 0; in zend_strip()
[all …]
H A Dzend_language_parser.y57 %token END 0 "end of file"
102 %token T_SL "<< (T_SL)"
103 %token T_SR ">> (T_SR)"
110 %token T_INC "++ (T_INC)"
111 %token T_DEC "-- (T_DEC)"
124 %token T_IF "if (T_IF)"
137 %token T_INLINE_HTML
138 %token T_CHARACTER
139 %token T_BAD_CHARACTER
143 %token T_DO "do (T_DO)"
[all …]
H A Dzend_indent.c52 zval token; in zend_indent() local
63 token.type = 0; in zend_indent()
64 while ((token_type=lex_scan(&token TSRMLS_CC))) { in zend_indent()
70 token.type = 0; in zend_indent()
82 if (token.type==0) { in zend_indent()
135 if (token.type == IS_STRING) { in zend_indent()
142 efree(token.value.str.val); in zend_indent()
146 token.type = 0; in zend_indent()
H A Dzend_ini_parser.y252 %token TC_SECTION
253 %token TC_RAW
254 %token TC_CONSTANT
255 %token TC_NUMBER
256 %token TC_STRING
258 %token TC_LABEL
259 %token TC_OFFSET
261 %token TC_VARNAME
263 %token BOOL_TRUE
264 %token BOOL_FALSE
[all …]
/PHP-5.4/ext/tokenizer/
H A Dtokenizer.php18 $token = $tokens[$i]; variable
19 if (is_array($token)) {
20 if ($state == 1 && $token[0] == T_STRING) {
21 $token[1] = preg_replace('!([a-z])([A-Z])!e', '"$1_".strtolower("$2")', $token[1]);
23 } else if ($token[0] == T_FUNCTION) {
26 $chunk = $token[1];
28 $chunk = $token;
H A Dtokenizer.c46 ZEND_ARG_INFO(0, token)
106 zval token; in tokenize() local
115 ZVAL_NULL(&token); in tokenize()
116 while ((token_type = lex_scan(&token TSRMLS_CC))) { in tokenize()
141 add_next_index_stringl(keyword, Z_STRVAL(token), Z_STRLEN(token), 1); in tokenize()
142 efree(Z_STRVAL(token)); in tokenize()
151 if (destroy && Z_TYPE(token) != IS_NULL) { in tokenize()
152 zval_dtor(&token); in tokenize()
154 ZVAL_NULL(&token); in tokenize()
/PHP-5.4/TSRM/
H A Dtsrm_strtok_r.c19 char *token; in tsrm_strtok_r() local
32 token = s; in tsrm_strtok_r()
43 return token; in tsrm_strtok_r()
52 char *token;
54 token = tsrm_strtok_r(foo, "/\\", &last);
55 while (token) {
56 printf ("Token = '%s'\n", token);
57 token = tsrm_strtok_r(NULL, "/\\", &last);
/PHP-5.4/ext/standard/tests/strings/
H A Dstrtok_basic.phpt5 /* Prototype : string strtok ( str $str, str $token )
6 …ring (str) into smaller strings (tokens), with each token being delimited by any character from to…
18 $token = ' ().';
21 echo "\nThe token string is:\n\"$token\"\n";
25 var_dump( strtok($str, $token) );
29 var_dump( strtok($token) );
40 The token string is:
H A Dstrtok_variation6.phpt5 /* Prototype : string strtok ( str $str, str $token )
6 …ring (str) into smaller strings (tokens), with each token being delimited by any character from to…
11 * Testing strtok() : with invalid escape sequences in token
14 echo "*** Testing strtok() : with invalid escape sequences in token ***\n";
32 // when supplied with different string and token values
37 foreach( $token_array as $token ) {
38 var_dump( strtok($string, $token) );
40 var_dump( strtok($token) );
51 *** Testing strtok() : with invalid escape sequences in token ***
H A Dstrtok_variation2.phpt2 Test strtok() function : usage variations - with different token strings
5 /* Prototype : string strtok ( str $str, str $token )
6 …ring (str) into smaller strings (tokens), with each token being delimited by any character from to…
11 * Testing strtok() : with different token strings
14 echo "*** Testing strtok() : with different token strings ***\n";
84 // when $token argument is supplied with different values
86 echo "\n--- Testing strtok() by supplying different values for 'token' argument ---\n";
90 $token = $values [$index];
92 var_dump( strtok($str, $token) );
103 *** Testing strtok() : with different token strings ***
[all …]
H A Dstrtok_variation7.phpt5 /* Prototype : string strtok ( str $str, str $token )
6 …ring (str) into smaller strings (tokens), with each token being delimited by any character from to…
17 $token = " ";
20 var_dump( strtok($str, $token) );
25 var_dump( strtok($token) );
30 var_dump( strtok($str, $token) );
35 var_dump( strtok($token) );
H A Dstrtok_error.phpt5 /* Prototype : string strtok ( string $str, string $token )
6 …ring (str) into smaller strings (tokens), with each token being delimited by any character from to…
23 $token = ' ';
26 var_dump( strtok($str, $token, $extra_arg) );
H A Dstrtok_variation5.phpt5 /* Prototype : string strtok ( str $str, str $token )
6 …ring (str) into smaller strings (tokens), with each token being delimited by any character from to…
11 * Testing strtok() : with miscellaneous combinations of string and token
45 // when supplied with different string and token values
H A Dstrtok_variation1.phpt5 /* Prototype : string strtok ( string $str, string $token )
6 …ring (str) into smaller strings (tokens), with each token being delimited by any character from to…
16 $token = '-';
92 var_dump( strtok($str, $token) );
H A Dstrtok_variation4.phpt5 /* Prototype : string strtok ( str $str, str $token )
6 …ring (str) into smaller strings (tokens), with each token being delimited by any character from to…
/PHP-5.4/ext/phar/
H A Dmakestub.php6 foreach (token_get_all($s) as $token) {
7 if (is_array($token)) {
8 if ($token[0] == T_COMMENT) {
9 $token[1] = '';
11 if ($token[0] == T_WHITESPACE) {
12 $n = str_repeat("\n", substr_count($token[1], "\n"));
13 $token[1] = strlen($n) ? $n : ' ';
15 $news .= $token[1];
17 $news .= $token;
/PHP-5.4/ext/tokenizer/tests/
H A Dtoken_get_all_variation19.phpt36 // reconstruct a script (without open/close tags) from the token array
37 foreach ($token_array as $token) {
38 if (is_array($token)) {
39 if (strncmp($token[1], '<?php', 5) == 0) {
42 if (strncmp($token[1], '?>', 2) == 0) {
45 $script .= $token[1];
47 $script .= $token;
/PHP-5.4/win32/
H A Dsendmail.c437 while (token != NULL) in SendText()
439 SMTP_SKIP_SPACE(token); in SendText()
450 token = strtok(NULL, ","); in SendText()
458 while (token != NULL) in SendText()
460 SMTP_SKIP_SPACE(token); in SendText()
488 while (token != NULL) in SendText()
490 SMTP_SKIP_SPACE(token); in SendText()
513 while (token != NULL) in SendText()
515 SMTP_SKIP_SPACE(token); in SendText()
546 while (token != NULL) in SendText()
[all …]
/PHP-5.4/ext/standard/tests/serialize/
H A Dbug65481.phpt33 $token = new Token;
34 $token = serialize($token);
/PHP-5.4/ext/date/tests/
H A D005.phpt29 Warning: idate(): Unrecognized date format token. in %s on line %d
35 Warning: idate(): Unrecognized date format token. in %s on line %d
39 Warning: idate(): Unrecognized date format token. in %s on line %d
42 Warning: idate(): Unrecognized date format token. in %s on line %d
H A Didate_variation1.phpt104 Warning: idate(): Unrecognized date format token. in %s on line %d
107 Warning: idate(): Unrecognized date format token. in %s on line %d
112 Warning: idate(): Unrecognized date format token. in %s on line %d
115 Warning: idate(): Unrecognized date format token. in %s on line %d
224 Warning: idate(): Unrecognized date format token. in %s on line %d
227 Warning: idate(): Unrecognized date format token. in %s on line %d
240 Warning: idate(): Unrecognized date format token. in %s on line %d
243 Warning: idate(): Unrecognized date format token. in %s on line %d
/PHP-5.4/ext/soap/tests/bugs/
H A Dbug50762.phpt9 public function authToken($token){
38 public function __construct($token){
39 $this->authToken=$token;
/PHP-5.4/ext/intl/locale/
H A Dlocale_methods.c1036 char* token = NULL; in add_array_entry() local
1062 while( (token = php_strtok_r(NULL , DELIMITER , &last_ptr)) && (strlen(token)>1) ){ in add_array_entry()
1145 char* token = NULL; in PHP_FUNCTION() local
1177 add_next_index_stringl( return_value, token , strlen(token) ,TRUE ); in PHP_FUNCTION()
1179 while( (token = php_strtok_r(NULL , DELIMITER, &saved_ptr)) && (strlen(token)>1) ){ in PHP_FUNCTION()
1180 add_next_index_stringl( return_value, token , strlen(token) ,TRUE ); in PHP_FUNCTION()
1242 char* token = 0; in PHP_FUNCTION() local
1315 if( token && (token==cur_lang_tag) ){ in PHP_FUNCTION()
1317 chrcheck = token + (strlen(cur_loc_range)); in PHP_FUNCTION()
1371 if( token && (token==cur_lang_tag) ){ in PHP_FUNCTION()
[all …]
/PHP-5.4/sapi/fpm/fpm/
H A Dfpm_log.c102 int token, test; in fpm_log_write() local
141 token = 0; in fpm_log_write()
158 if (!token && *s == '%') { in fpm_log_write()
159 token = 1; in fpm_log_write()
165 if (token) { in fpm_log_write()
166 token = 0; in fpm_log_write()
407 token = 1; in fpm_log_write()
/PHP-5.4/ext/standard/
H A Dphp_fopen_wrapper.c135 char *p, *token; in php_stream_apply_filter_list() local
138 p = php_strtok_r(filterlist, "|", &token); in php_stream_apply_filter_list()
155 p = php_strtok_r(NULL, "|", &token); in php_stream_apply_filter_list()
165 char *p, *token, *pathdup; in php_stream_url_wrap_php() local
329 p = php_strtok_r(pathdup + 1, "/", &token); in php_stream_url_wrap_php()
338 p = php_strtok_r(NULL, "/", &token); in php_stream_url_wrap_php()

Completed in 74 milliseconds

12