Home
last modified time | relevance | path

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

123

/PHP-7.2/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.c54 ZEND_ARG_INFO(0, token)
131 zval token; in tokenize() local
147 ZVAL_UNDEF(&token); in tokenize()
148 while ((token_type = lex_scan(&token))) { in tokenize()
151 if (Z_TYPE(token) != IS_UNDEF) { in tokenize()
152 zval_dtor(&token); in tokenize()
153 ZVAL_UNDEF(&token); in tokenize()
187 void on_event(zend_php_scanner_event event, int token, int line, void *context) in on_event() argument
195 if (token == END) break; in on_event()
196 add_token(token_stream, token, LANG_SCNG(yy_text), LANG_SCNG(yy_leng), line); in on_event()
[all …]
/PHP-7.2/Zend/
H A Dzend_language_parser.y93 %token <ast> T_INLINE_HTML
99 %token END 0 "end of file"
131 %token T_SL "<< (T_SL)"
132 %token T_SR ">> (T_SR)"
134 %token T_INC "++ (T_INC)"
135 %token T_DEC "-- (T_DEC)"
143 %token T_NEW "new (T_NEW)"
146 %token T_IF "if (T_IF)"
151 %token T_DO "do (T_DO)"
160 %token T_AS "as (T_AS)"
[all …]
H A Dzend_highlight.c88 zval token; in zend_highlight() local
96 ZVAL_UNDEF(&token); in zend_highlight()
126 ZVAL_UNDEF(&token); in zend_highlight()
150 if (Z_TYPE(token) == IS_STRING) { in zend_highlight()
164 ZVAL_UNDEF(&token); in zend_highlight()
179 zval token; in zend_strip() local
183 ZVAL_UNDEF(&token); in zend_strip()
194 ZVAL_UNDEF(&token); in zend_strip()
205 ZVAL_UNDEF(&token); in zend_strip()
213 if (Z_TYPE(token) == IS_STRING) { in zend_strip()
[all …]
H A Dzend_ini_parser.y285 %token TC_SECTION
286 %token TC_RAW
287 %token TC_CONSTANT
288 %token TC_NUMBER
289 %token TC_STRING
291 %token TC_LABEL
292 %token TC_OFFSET
294 %token TC_VARNAME
296 %token BOOL_TRUE
297 %token BOOL_FALSE
[all …]
/PHP-7.2/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-7.2/sapi/phpdbg/
H A Dphpdbg_parser.y47 %token T_EVAL "eval"
48 %token T_RUN "run"
49 %token T_SHELL "shell"
50 %token T_IF "if (condition)"
54 %token T_COLON ": (colon)"
57 %token T_SEPARATOR "# (pound sign)"
59 %token T_DIGITS "digits (numbers)"
60 %token T_LITERAL "literal (string)"
61 %token T_ADDR "address"
62 %token T_OPCODE "opcode"
[all …]
/PHP-7.2/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) );
/PHP-7.2/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-7.2/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;
H A Dparse_errors.phpt15 foreach (token_get_all($code) as $token) {
16 if (is_array($token)) {
17 echo token_name($token[0]), " ($token[1])\n";
19 echo "$token\n";
/PHP-7.2/win32/
H A Dsendmail.c430 while (token != NULL) in SendText()
432 SMTP_SKIP_SPACE(token); in SendText()
443 token = strtok(NULL, ","); in SendText()
451 while (token != NULL) in SendText()
453 SMTP_SKIP_SPACE(token); in SendText()
481 while (token != NULL) in SendText()
483 SMTP_SKIP_SPACE(token); in SendText()
506 while (token != NULL) in SendText()
508 SMTP_SKIP_SPACE(token); in SendText()
539 while (token != NULL) in SendText()
[all …]
/PHP-7.2/ext/json/
H A Djson_parser.y63 %token <value> PHP_JSON_T_NUL
64 %token <value> PHP_JSON_T_TRUE
65 %token <value> PHP_JSON_T_FALSE
66 %token <value> PHP_JSON_T_INT
67 %token <value> PHP_JSON_T_DOUBLE
68 %token <value> PHP_JSON_T_STRING
69 %token <value> PHP_JSON_T_ESTRING
70 %token <value> PHP_JSON_T_EOI
71 %token <value> PHP_JSON_T_ERROR
297 int token = php_json_scan(&parser->scanner); in php_json_yylex() local
[all …]
/PHP-7.2/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:{x:i:0;r}';
7 $obj = unserialize($token);
/PHP-7.2/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-7.2/ext/opcache/tests/
H A Dbug76477.phpt14 $token = "ABC";
15 $lengthBytes = strlenb($token);
/PHP-7.2/ext/soap/tests/bugs/
H A Dbug50762.phpt9 public function authToken($token){
38 public function __construct($token){
39 $this->authToken=$token;
/PHP-7.2/ext/intl/locale/
H A Dlocale_methods.c1046 char* token = NULL; in add_array_entry() local
1072 while( (token = php_strtok_r(NULL , DELIMITER , &last_ptr)) && (strlen(token)>1) ){ in add_array_entry()
1159 char* token = NULL; in PHP_FUNCTION() local
1193 add_next_index_stringl( return_value, token , strlen(token)); in PHP_FUNCTION()
1195 while( (token = php_strtok_r(NULL , DELIMITER, &saved_ptr)) && (strlen(token)>1) ){ in PHP_FUNCTION()
1196 add_next_index_stringl( return_value, token , strlen(token)); in PHP_FUNCTION()
1256 char* token = 0; in PHP_FUNCTION() local
1333 if( token && (token==cur_lang_tag) ){ in PHP_FUNCTION()
1335 chrcheck = token + (strlen(cur_loc_range)); in PHP_FUNCTION()
1389 if( token && (token==cur_lang_tag) ){ in PHP_FUNCTION()
[all …]

Completed in 34 milliseconds

123