Home
last modified time | relevance | path

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

123

/PHP-7.0/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.y276 %token TC_SECTION
277 %token TC_RAW
278 %token TC_CONSTANT
279 %token TC_NUMBER
280 %token TC_STRING
282 %token TC_LABEL
283 %token TC_OFFSET
285 %token TC_VARNAME
287 %token BOOL_TRUE
288 %token BOOL_FALSE
[all …]
/PHP-7.0/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)
113 zval token; in tokenize() local
130 ZVAL_UNDEF(&token); in tokenize()
131 while ((token_type = lex_scan(&token))) { in tokenize()
152 if (Z_TYPE(token) != IS_UNDEF) { in tokenize()
153 zval_dtor(&token); in tokenize()
154 ZVAL_UNDEF(&token); in tokenize()
188 void on_event(zend_php_scanner_event event, int token, int line) in on_event() argument
196 if (token == END) break; in on_event()
197 if (token >= 256) { in on_event()
[all …]
/PHP-7.0/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.0/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.0/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 Dmoney_format_error.phpt35 echo "\n-- Testing money_format() function with more than one token --\n";
57 -- Testing money_format() function with more than one token --
59 Warning: money_format(): Only a single %ci or %cn token can be used in %s on line %d
/PHP-7.0/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.0/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.0/ext/json/
H A Djson_parser.y55 %token <value> PHP_JSON_T_NUL
56 %token <value> PHP_JSON_T_TRUE
57 %token <value> PHP_JSON_T_FALSE
58 %token <value> PHP_JSON_T_INT
59 %token <value> PHP_JSON_T_DOUBLE
60 %token <value> PHP_JSON_T_STRING
61 %token <value> PHP_JSON_T_ESTRING
62 %token <value> PHP_JSON_T_EOI
63 %token <value> PHP_JSON_T_ERROR
294 int token = php_json_scan(&parser->scanner); in php_json_yylex() local
[all …]
/PHP-7.0/win32/
H A Dsendmail.c444 while (token != NULL) in SendText()
446 SMTP_SKIP_SPACE(token); in SendText()
457 token = strtok(NULL, ","); in SendText()
465 while (token != NULL) in SendText()
467 SMTP_SKIP_SPACE(token); in SendText()
495 while (token != NULL) in SendText()
497 SMTP_SKIP_SPACE(token); in SendText()
520 while (token != NULL) in SendText()
522 SMTP_SKIP_SPACE(token); in SendText()
553 while (token != NULL) in SendText()
[all …]
/PHP-7.0/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-7.0/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.0/ext/soap/tests/bugs/
H A Dbug50762.phpt9 public function authToken($token){
38 public function __construct($token){
39 $this->authToken=$token;
/PHP-7.0/ext/intl/locale/
H A Dlocale_methods.c1050 char* token = NULL; in add_array_entry() local
1076 while( (token = php_strtok_r(NULL , DELIMITER , &last_ptr)) && (strlen(token)>1) ){ in add_array_entry()
1163 char* token = NULL; in PHP_FUNCTION() local
1197 add_next_index_stringl( return_value, token , strlen(token)); in PHP_FUNCTION()
1199 while( (token = php_strtok_r(NULL , DELIMITER, &saved_ptr)) && (strlen(token)>1) ){ in PHP_FUNCTION()
1200 add_next_index_stringl( return_value, token , strlen(token)); in PHP_FUNCTION()
1260 char* token = 0; in PHP_FUNCTION() local
1337 if( token && (token==cur_lang_tag) ){ in PHP_FUNCTION()
1339 chrcheck = token + (strlen(cur_loc_range)); in PHP_FUNCTION()
1393 if( token && (token==cur_lang_tag) ){ in PHP_FUNCTION()
[all …]

Completed in 36 milliseconds

123