Home
last modified time | relevance | path

Searched refs:tok (Results 1 – 16 of 16) sorted by relevance

/php-src/Zend/tests/
H A Dgh13145.phpt5 $tok = strtok("This is\tan example\nstring", " \n\t");
6 while ($tok !== false) {
7 var_dump($tok);
8 $tok = strtok(" \n\t");
/php-src/main/
H A Dreentrancy.c267 char *tok; in php_strtok_r() local
292 tok = s - 1; in php_strtok_r()
316 return tok; in php_strtok_r()
/php-src/ext/pdo_firebird/
H A Dfirebird_driver.c309 while (p < end && (tok == ttComment || tok == ttWhite)) in php_firebird_preprocess()
312 tok = php_firebird_get_token(&p, end); in php_firebird_preprocess()
315 if (p >= end || tok != ttIdent) in php_firebird_preprocess()
336 tok = php_firebird_get_token(&p, end); in php_firebird_preprocess()
337 while (p < end && (tok == ttComment || tok == ttWhite)) in php_firebird_preprocess()
340 tok = php_firebird_get_token(&p, end); in php_firebird_preprocess()
342 if (p >= end || tok != ttIdent) in php_firebird_preprocess()
379 tok = php_firebird_get_token(&p, end); in php_firebird_preprocess()
380 switch (tok) in php_firebird_preprocess()
383 tok = php_firebird_get_token(&p, end); in php_firebird_preprocess()
[all …]
/php-src/ext/pdo/
H A Dpdo_sql_parser.h27 #define SKIP_ONE(i) {s->cur = s->tok + 1; return i; }
H A Dpdo_sql_parser.re25 s->tok = cursor;
88 …if (t == PDO_PARSER_CUSTOM_QUOTE && custom_quote.len == s.cur - s.tok && !strncmp(s.tok, custom_qu…
106 custom_quote.pos = s.tok;
107 custom_quote.len = s.cur - s.tok;
119 ptrdiff_t len = s.cur - s.tok;
132 plc->pos = s.tok;
133 plc->len = s.cur - s.tok;
H A Dphp_pdo_driver.h656 const char *ptr, *cur, *tok, *end; member
/php-src/ext/date/lib/
H A Dparse_iso_intervals.re73 uchar *lim, *str, *ptr, *cur, *tok, *pos;
93 s->errors->error_messages[s->errors->error_count - 1].position = s->tok ? s->tok - s->str : 0;
94 s->errors->error_messages[s->errors->error_count - 1].character = s->tok ? *s->tok : 0;
100 char *tmp = timelib_calloc(1, s->cur - s->tok + 1);
101 memcpy(tmp, s->tok, s->cur - s->tok);
175 s->tok = cursor;
H A Dparse_iso_intervals.c75 uchar *lim, *str, *ptr, *cur, *tok, *pos; member
95 s->errors->error_messages[s->errors->error_count - 1].position = s->tok ? s->tok - s->str : 0; in add_error()
96 s->errors->error_messages[s->errors->error_count - 1].character = s->tok ? *s->tok : 0; in add_error()
102 char *tmp = timelib_calloc(1, s->cur - s->tok + 1); in timelib_string()
103 memcpy(tmp, s->tok, s->cur - s->tok); in timelib_string()
177 s->tok = cursor; in scan()
H A Dparse_date.re321 unsigned int cnt = s->tok - s->bot;
323 memcpy(s->bot, s->tok, s->lim - s->tok);
324 s->tok = s->bot;
332 memcpy(buf, s->tok, s->lim - s->tok);
333 s->tok = buf;
369 message->position = s->tok ? s->tok - s->str : 0;
370 message->character = s->tok ? *s->tok : 0;
379 message->position = s->tok ? s->tok - s->str : 0;
380 message->character = s->tok ? *s->tok : 0;
470 memcpy(tmp, s->tok, s->cur - s->tok);
[all …]
H A Dparse_date.c323 unsigned int cnt = s->tok - s->bot;
325 memcpy(s->bot, s->tok, s->lim - s->tok);
326 s->tok = s->bot;
334 memcpy(buf, s->tok, s->lim - s->tok);
335 s->tok = buf;
371 message->position = s->tok ? s->tok - s->str : 0; in add_warning()
372 message->character = s->tok ? *s->tok : 0; in add_warning()
381 message->position = s->tok ? s->tok - s->str : 0; in add_error()
382 message->character = s->tok ? *s->tok : 0; in add_error()
472 memcpy(tmp, s->tok, s->cur - s->tok); in timelib_string()
[all …]
/php-src/ext/pdo_mysql/
H A Dmysql_sql_parser.re26 s->tok = cursor;
/php-src/ext/pdo_sqlite/
H A Dsqlite_sql_parser.re26 s->tok = cursor;
/php-src/ext/pdo_pgsql/
H A Dpgsql_sql_parser.re26 s->tok = cursor;
/php-src/ext/phar/
H A Dphar.c2133 char *tok; in phar_fix_filepath() local
2152 tok = ptr; in phar_fix_filepath()
2156 } while (ptr && ptr - tok == 0 && *ptr == '/' && ++ptr && ++tok); in phar_fix_filepath()
2159 switch (path_length - (tok - path)) { in phar_fix_filepath()
2161 if (*tok == '.') { in phar_fix_filepath()
2169 if (tok[0] == '.' && tok[1] == '.') { in phar_fix_filepath()
2181 ptr_length = ptr - tok; in phar_fix_filepath()
2183 if (IS_DIRECTORY_UP(tok, ptr_length)) { in phar_fix_filepath()
2208 tok = ++ptr; in phar_fix_filepath()
2212 } while (ptr && ptr - tok == 0 && *ptr == '/' && ++ptr && ++tok); in phar_fix_filepath()
[all …]
/php-src/ext/standard/
H A Dfile.c247 php_meta_tags_token tok, tok_last; in PHP_FUNCTION() local
271 while (!done && (tok = php_next_meta_token(&md)) != TOK_EOF) { in PHP_FUNCTION()
272 if (tok == TOK_ID) { in PHP_FUNCTION()
314 } else if (tok == TOK_STRING && tok_last == TOK_EQUAL && looking_for_val) { in PHP_FUNCTION()
335 } else if (tok == TOK_OPENTAG) { in PHP_FUNCTION()
342 } else if (tok == TOK_CLOSETAG) { in PHP_FUNCTION()
367 tok_last = tok; in PHP_FUNCTION()
H A Dstring.c1122 zend_string *str, *tok = NULL; in PHP_FUNCTION() local
1132 Z_PARAM_STR_OR_NULL(tok) in PHP_FUNCTION()
1135 if (!tok) { in PHP_FUNCTION()
1136 tok = str; in PHP_FUNCTION()
1159 token = ZSTR_VAL(tok); in PHP_FUNCTION()
1160 token_end = token + ZSTR_LEN(tok); in PHP_FUNCTION()
1194 token = ZSTR_VAL(tok); in PHP_FUNCTION()

Completed in 65 milliseconds