Searched refs:tok (Results 1 – 11 of 11) sorted by relevance
/php-src/Zend/tests/ |
H A D | gh13145.phpt | 5 $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 D | reentrancy.c | 267 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 D | firebird_driver.c | 308 while (p < end && (tok == ttComment || tok == ttWhite)) in php_firebird_preprocess() 311 tok = php_firebird_get_token(&p, end); in php_firebird_preprocess() 314 if (p >= end || tok != ttIdent) in php_firebird_preprocess() 335 tok = php_firebird_get_token(&p, end); in php_firebird_preprocess() 336 while (p < end && (tok == ttComment || tok == ttWhite)) in php_firebird_preprocess() 339 tok = php_firebird_get_token(&p, end); in php_firebird_preprocess() 341 if (p >= end || tok != ttIdent) in php_firebird_preprocess() 378 tok = php_firebird_get_token(&p, end); in php_firebird_preprocess() 379 switch (tok) in php_firebird_preprocess() 382 tok = php_firebird_get_token(&p, end); in php_firebird_preprocess() [all …]
|
/php-src/ext/date/lib/ |
H A D | parse_iso_intervals.re | 73 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 D | parse_iso_intervals.c | 75 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 D | parse_date.re | 321 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 D | parse_date.c | 323 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/ |
H A D | pdo_sql_parser.re | 30 #define SKIP_ONE(i) {s->cur = s->tok + 1; return i; } 39 const char *ptr, *cur, *tok, *end; 46 s->tok = cursor; 107 ptrdiff_t len = s.cur - s.tok; 119 plc->pos = s.tok; 120 plc->len = s.cur - s.tok;
|
/php-src/ext/phar/ |
H A D | phar.c | 2131 char *tok; in phar_fix_filepath() local 2150 tok = ptr; in phar_fix_filepath() 2154 } while (ptr && ptr - tok == 0 && *ptr == '/' && ++ptr && ++tok); in phar_fix_filepath() 2157 switch (path_length - (tok - path)) { in phar_fix_filepath() 2159 if (*tok == '.') { in phar_fix_filepath() 2167 if (tok[0] == '.' && tok[1] == '.') { in phar_fix_filepath() 2179 ptr_length = ptr - tok; in phar_fix_filepath() 2181 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 D | file.c | 255 php_meta_tags_token tok, tok_last; in PHP_FUNCTION() local 279 while (!done && (tok = php_next_meta_token(&md)) != TOK_EOF) { in PHP_FUNCTION() 280 if (tok == TOK_ID) { in PHP_FUNCTION() 322 } else if (tok == TOK_STRING && tok_last == TOK_EQUAL && looking_for_val) { in PHP_FUNCTION() 343 } else if (tok == TOK_OPENTAG) { in PHP_FUNCTION() 350 } else if (tok == TOK_CLOSETAG) { in PHP_FUNCTION() 375 tok_last = tok; in PHP_FUNCTION()
|
H A D | string.c | 1137 zend_string *str, *tok = NULL; in PHP_FUNCTION() local 1147 Z_PARAM_STR_OR_NULL(tok) in PHP_FUNCTION() 1150 if (!tok) { in PHP_FUNCTION() 1151 tok = str; in PHP_FUNCTION() 1174 token = ZSTR_VAL(tok); in PHP_FUNCTION() 1175 token_end = token + ZSTR_LEN(tok); in PHP_FUNCTION() 1209 token = ZSTR_VAL(tok); in PHP_FUNCTION()
|
Completed in 76 milliseconds