Home
last modified time | relevance | path

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

/PHP-7.4/main/
H A Dreentrancy.c328 char *tok; in php_strtok_r() local
353 tok = s - 1; in php_strtok_r()
377 return tok; in php_strtok_r()
/PHP-7.4/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);
173 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()
175 s->tok = cursor; in scan()
H A Dparse_date.re304 unsigned int cnt = s->tok - s->bot;
306 memcpy(s->bot, s->tok, s->lim - s->tok);
307 s->tok = s->bot;
315 memcpy(buf, s->tok, s->lim - s->tok);
316 s->tok = buf;
339 s->errors->warning_messages[s->errors->warning_count - 1].position = s->tok ? s->tok - s->str : 0;
340 s->errors->warning_messages[s->errors->warning_count - 1].character = s->tok ? *s->tok : 0;
349 s->errors->error_messages[s->errors->error_count - 1].position = s->tok ? s->tok - s->str : 0;
350 s->errors->error_messages[s->errors->error_count - 1].character = s->tok ? *s->tok : 0;
440 memcpy(tmp, s->tok, s->cur - s->tok);
[all …]
H A Dparse_date.c306 unsigned int cnt = s->tok - s->bot;
308 memcpy(s->bot, s->tok, s->lim - s->tok);
309 s->tok = s->bot;
317 memcpy(buf, s->tok, s->lim - s->tok);
318 s->tok = buf;
341 s->errors->warning_messages[s->errors->warning_count - 1].position = s->tok ? s->tok - s->str : 0; in add_warning()
342 s->errors->warning_messages[s->errors->warning_count - 1].character = s->tok ? *s->tok : 0; in add_warning()
351 s->errors->error_messages[s->errors->error_count - 1].position = s->tok ? s->tok - s->str : 0; in add_error()
352 s->errors->error_messages[s->errors->error_count - 1].character = s->tok ? *s->tok : 0; in add_error()
442 memcpy(tmp, s->tok, s->cur - s->tok); in timelib_string()
[all …]
/PHP-7.4/ext/pdo/
H A Dpdo_sql_parser.re32 #define SKIP_ONE(i) {s->cur = s->tok + 1; return i; }
41 char *ptr, *cur, *tok, *end;
48 s->tok = cursor;
113 ptrdiff_t len = s.cur - s.tok;
125 plc->pos = s.tok;
126 plc->len = s.cur - s.tok;
/PHP-7.4/ext/phar/
H A Dphar.c2091 char *tok; in phar_fix_filepath() local
2110 tok = ptr; in phar_fix_filepath()
2114 } while (ptr && ptr - tok == 0 && *ptr == '/' && ++ptr && ++tok); in phar_fix_filepath()
2117 switch (path_length - (tok - path)) { in phar_fix_filepath()
2119 if (*tok == '.') { in phar_fix_filepath()
2127 if (tok[0] == '.' && tok[1] == '.') { in phar_fix_filepath()
2139 ptr_length = ptr - tok; in phar_fix_filepath()
2141 if (IS_DIRECTORY_UP(tok, ptr_length)) { in phar_fix_filepath()
2168 tok = ++ptr; in phar_fix_filepath()
2172 } while (ptr && ptr - tok == 0 && *ptr == '/' && ++ptr && ++tok); in phar_fix_filepath()
[all …]
/PHP-7.4/ext/standard/
H A Dfile.c389 php_meta_tags_token tok, tok_last; in PHP_FUNCTION() local
413 while (!done && (tok = php_next_meta_token(&md)) != TOK_EOF) { in PHP_FUNCTION()
414 if (tok == TOK_ID) { in PHP_FUNCTION()
456 } else if (tok == TOK_STRING && tok_last == TOK_EQUAL && looking_for_val) { in PHP_FUNCTION()
477 } else if (tok == TOK_OPENTAG) { in PHP_FUNCTION()
484 } else if (tok == TOK_CLOSETAG) { in PHP_FUNCTION()
509 tok_last = tok; in PHP_FUNCTION()
H A Dstring.c1317 zend_string *str, *tok = NULL; in PHP_FUNCTION() local
1327 Z_PARAM_STR(tok) in PHP_FUNCTION()
1331 tok = str; in PHP_FUNCTION()
1346 token = ZSTR_VAL(tok); in PHP_FUNCTION()
1347 token_end = token + ZSTR_LEN(tok); in PHP_FUNCTION()
1382 token = ZSTR_VAL(tok); in PHP_FUNCTION()

Completed in 98 milliseconds