Home
last modified time | relevance | path

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

12

/PHP-5.6/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()
148 if (destroy && Z_TYPE(token) != IS_NULL) { in tokenize()
149 zval_dtor(&token); in tokenize()
151 ZVAL_NULL(&token); in tokenize()
/PHP-5.6/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()
143 if (token.type == IS_STRING) { in zend_highlight()
157 token.type = 0; in zend_highlight()
169 zval token; in zend_strip() local
173 token.type = 0; in zend_strip()
184 token.type = 0; in zend_strip()
195 token.type = 0; in zend_strip()
[all …]
H A Dzend_language_parser.y57 %token END 0 "end of file"
104 %token T_SL "<< (T_SL)"
105 %token T_SR ">> (T_SR)"
113 %token T_INC "++ (T_INC)"
114 %token T_DEC "-- (T_DEC)"
127 %token T_IF "if (T_IF)"
140 %token T_INLINE_HTML
141 %token T_CHARACTER
142 %token T_BAD_CHARACTER
146 %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 str_efree(token.value.str.val); in zend_indent()
146 token.type = 0; in zend_indent()
H A Dzend_ini_parser.y269 %token TC_SECTION
270 %token TC_RAW
271 %token TC_CONSTANT
272 %token TC_NUMBER
273 %token TC_STRING
275 %token TC_LABEL
276 %token TC_OFFSET
278 %token TC_VARNAME
280 %token BOOL_TRUE
281 %token BOOL_FALSE
[all …]
/PHP-5.6/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.6/sapi/phpdbg/
H A Dphpdbg_parser.y44 %token T_EVAL "eval"
45 %token T_RUN "run"
46 %token T_SHELL "shell"
47 %token T_IF "if (condition)"
51 %token T_COLON ": (colon)"
53 %token T_POUND "# (pound sign)"
55 %token T_DIGITS "digits (numbers)"
56 %token T_LITERAL "literal (string)"
57 %token T_ADDR "address"
58 %token T_OPCODE "opcode"
[all …]
/PHP-5.6/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.6/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.6/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.6/win32/
H A Dsendmail.c438 while (token != NULL) in SendText()
440 SMTP_SKIP_SPACE(token); in SendText()
451 token = strtok(NULL, ","); in SendText()
459 while (token != NULL) in SendText()
461 SMTP_SKIP_SPACE(token); in SendText()
489 while (token != NULL) in SendText()
491 SMTP_SKIP_SPACE(token); in SendText()
514 while (token != NULL) in SendText()
516 SMTP_SKIP_SPACE(token); in SendText()
547 while (token != NULL) in SendText()
[all …]
/PHP-5.6/ext/standard/tests/serialize/
H A Dbug65481.phpt33 $token = new Token;
34 $token = serialize($token);
H A Dbug73341.phpt6 $token = 'a:2:{i:0;O:1:"0":2:0s:1:"0";i:0;s:1:"0";a:1:{i:0;C:11:"ArrayObject":7:0x:i:0;r0';
7 $obj = unserialize($token);
/PHP-5.6/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
/PHP-5.6/ext/soap/tests/bugs/
H A Dbug50762.phpt9 public function authToken($token){
38 public function __construct($token){
39 $this->authToken=$token;
/PHP-5.6/ext/intl/locale/
H A Dlocale_methods.c1041 char* token = NULL; in add_array_entry() local
1067 while( (token = php_strtok_r(NULL , DELIMITER , &last_ptr)) && (strlen(token)>1) ){ in add_array_entry()
1152 char* token = NULL; in PHP_FUNCTION() local
1185 add_next_index_stringl( return_value, token , strlen(token) ,TRUE ); in PHP_FUNCTION()
1187 while( (token = php_strtok_r(NULL , DELIMITER, &saved_ptr)) && (strlen(token)>1) ){ in PHP_FUNCTION()
1188 add_next_index_stringl( return_value, token , strlen(token) ,TRUE ); in PHP_FUNCTION()
1248 char* token = 0; in PHP_FUNCTION() local
1324 if( token && (token==cur_lang_tag) ){ in PHP_FUNCTION()
1326 chrcheck = token + (strlen(cur_loc_range)); in PHP_FUNCTION()
1380 if( token && (token==cur_lang_tag) ){ in PHP_FUNCTION()
[all …]
/PHP-5.6/sapi/fpm/fpm/
H A Dfpm_log.c104 int token, test; in fpm_log_write() local
143 token = 0; in fpm_log_write()
160 if (!token && *s == '%') { in fpm_log_write()
161 token = 1; in fpm_log_write()
167 if (token) { in fpm_log_write()
168 token = 0; in fpm_log_write()
409 token = 1; in fpm_log_write()

Completed in 57 milliseconds

12