Home
last modified time | relevance | path

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

123

/PHP-5.3/Zend/
H A Dzend_highlight.c92 zval token; in zend_highlight() local
100 token.type = 0; in zend_highlight()
124 token.type = 0; in zend_highlight()
128 if (token.type == 0) { in zend_highlight()
162 efree(token.value.str.val); in zend_highlight()
164 token.type = 0; in zend_highlight()
176 zval token; in zend_strip() local
180 token.type = 0; in zend_strip()
191 token.type = 0; in zend_strip()
203 token.type = 0; in zend_strip()
[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_language_parser.y75 %token T_EXIT
76 %token T_IF
91 %token T_ECHO
92 %token T_DO
95 %token T_FOR
101 %token T_AS
104 %token T_CASE
112 %token T_TRY
115 %token T_USE
118 %token T_VAR
[all …]
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.3/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.c44 ZEND_ARG_INFO(0, token)
104 zval token; in tokenize() local
112 ZVAL_NULL(&token); in tokenize()
113 while ((token_type = lex_scan(&token TSRMLS_CC))) { in tokenize()
138 add_next_index_stringl(keyword, Z_STRVAL(token), Z_STRLEN(token), 1); in tokenize()
139 efree(Z_STRVAL(token)); 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.3/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.3/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 arugment 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.3/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.3/ext/tokenizer/tests/
H A Dtoken_get_all_variation19.phpt34 // reconstruct a script (without open/close tags) from the token array
35 foreach ($token_array as $token) {
36 if (is_array($token)) {
37 if (strncmp($token[1], '<?php', 5) == 0) {
40 if (strncmp($token[1], '?>', 2) == 0) {
43 $script .= $token[1];
45 $script .= $token;
/PHP-5.3/ext/sqlite/libsqlite/src/
H A Dtokenize.c577 token = tkSEMI; in sqlite_complete()
585 token = tkWS; in sqlite_complete()
590 token = tkOTHER; in sqlite_complete()
597 token = tkWS; in sqlite_complete()
602 token = tkOTHER; in sqlite_complete()
607 token = tkWS; in sqlite_complete()
614 token = tkOTHER; in sqlite_complete()
623 token = tkOTHER; in sqlite_complete()
654 token = tkEND; in sqlite_complete()
663 token = tkOTHER; in sqlite_complete()
[all …]
H A Dexpr.c37 pNew->token = *pToken; in sqliteExpr()
87 pNew->token.z = 0; in sqliteExprFunction()
99 if( p->token.dyn ) sqliteFree((char*)p->token.z); in sqliteExprDelete()
126 if( p->token.z!=0 ){ in sqliteExprDup()
127 pNew->token.z = sqliteStrNDup(p->token.z, p->token.n); in sqliteExprDup()
729 pE2->token.z, pE2->token.n); in sqliteExprResolveIds()
1060 sqliteVdbeChangeP3(v, -1, pExpr->token.z, pExpr->token.n); in sqliteExprCode()
1250 pExpr->token.z, pExpr->token.n); in sqliteExprCode()
1517 if( pB->token.n!=pA->token.n ) return 0; in sqliteExprCompare()
1518 if( sqliteStrNICmp(pA->token.z, pB->token.z, pB->token.n)!=0 ) return 0; in sqliteExprCompare()
[all …]
/PHP-5.3/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.3/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.3/ext/soap/tests/bugs/
H A Dbug50762.phpt9 public function authToken($token){
38 public function __construct($token){
39 $this->authToken=$token;
/PHP-5.3/ext/intl/locale/
H A Dlocale_methods.c1033 char* token = NULL; in add_array_entry() local
1059 while( (token = php_strtok_r(NULL , DELIMITER , &last_ptr)) && (strlen(token)>1) ){ in add_array_entry()
1142 char* token = NULL; in PHP_FUNCTION() local
1174 add_next_index_stringl( return_value, token , strlen(token) ,TRUE ); in PHP_FUNCTION()
1176 while( (token = php_strtok_r(NULL , DELIMITER, &saved_ptr)) && (strlen(token)>1) ){ in PHP_FUNCTION()
1177 add_next_index_stringl( return_value, token , strlen(token) ,TRUE ); in PHP_FUNCTION()
1239 char* token = 0; in PHP_FUNCTION() local
1312 if( token && (token==cur_lang_tag) ){ in PHP_FUNCTION()
1314 chrcheck = token + (strlen(cur_loc_range)); in PHP_FUNCTION()
1368 if( token && (token==cur_lang_tag) ){ in PHP_FUNCTION()
[all …]
/PHP-5.3/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.3/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 81 milliseconds

123