Home
last modified time | relevance | path

Searched refs:token (Results 51 – 75 of 226) sorted by relevance

12345678910

/php-src/ext/dom/lexbor/lexbor/html/tokenizer/
H A Dstate_rawtext.c110 if (tkz->token->begin != NULL) { in lxb_html_tokenizer_state_rawtext()
114 tkz->token->tag_id = LXB_TAG__TEXT; in lxb_html_tokenizer_state_rawtext()
245 tkz->token->tag_id = LXB_TAG__TEXT; in lxb_html_tokenizer_state_rawtext_end_tag_name()
252 tkz->token->tag_id = tkz->tmp_tag_id; in lxb_html_tokenizer_state_rawtext_end_tag_name()
253 tkz->token->begin = tkz->temp; in lxb_html_tokenizer_state_rawtext_end_tag_name()
254 tkz->token->end = data; in lxb_html_tokenizer_state_rawtext_end_tag_name()
290 tkz->token->tag_id = LXB_TAG__TEXT; in lxb_html_tokenizer_state_rawtext_end_tag_name()
297 tkz->token->tag_id = tkz->tmp_tag_id; in lxb_html_tokenizer_state_rawtext_end_tag_name()
298 tkz->token->begin = tkz->temp; in lxb_html_tokenizer_state_rawtext_end_tag_name()
299 tkz->token->end = data; in lxb_html_tokenizer_state_rawtext_end_tag_name()
[all …]
H A Dstate_doctype.c135 tkz->token->tag_id = LXB_TAG__EM_DOCTYPE; in lxb_html_tokenizer_state_doctype_before()
242 tkz->token->attr_last->type in lxb_html_tokenizer_state_doctype_before_name()
351 tkz->token->attr_last->type in lxb_html_tokenizer_state_doctype_name()
524 lxb_html_token_attr_delete(tkz->token, tkz->token->attr_last, in lxb_html_tokenizer_state_doctype_after_name_public()
547 tkz->token->attr_last->name = attr_data; in lxb_html_tokenizer_state_doctype_after_name_public()
574 lxb_html_token_attr_delete(tkz->token, tkz->token->attr_last, in lxb_html_tokenizer_state_doctype_after_name_system()
597 tkz->token->attr_last->name = attr_data; in lxb_html_tokenizer_state_doctype_after_name_system()
867 tkz->token->attr_last->type in lxb_html_tokenizer_state_doctype_public_identifier_double_quoted()
982 tkz->token->attr_last->type in lxb_html_tokenizer_state_doctype_public_identifier_single_quoted()
1420 tkz->token->attr_last->type in lxb_html_tokenizer_state_doctype_system_identifier_double_quoted()
[all …]
H A Dstate_rcdata.c119 if (tkz->token->begin != NULL) { in lxb_html_tokenizer_state_rcdata()
123 tkz->token->tag_id = LXB_TAG__TEXT; in lxb_html_tokenizer_state_rcdata()
221 if (tkz->tmp_tag_id != tkz->token->tag_id) { in lxb_html_tokenizer_state_rcdata_end_tag_name()
254 tkz->token->tag_id = LXB_TAG__TEXT; in lxb_html_tokenizer_state_rcdata_end_tag_name()
261 tkz->token->tag_id = tkz->tmp_tag_id; in lxb_html_tokenizer_state_rcdata_end_tag_name()
262 tkz->token->begin = tkz->temp; in lxb_html_tokenizer_state_rcdata_end_tag_name()
263 tkz->token->end = data; in lxb_html_tokenizer_state_rcdata_end_tag_name()
299 tkz->token->tag_id = LXB_TAG__TEXT; in lxb_html_tokenizer_state_rcdata_end_tag_name()
306 tkz->token->tag_id = tkz->tmp_tag_id; in lxb_html_tokenizer_state_rcdata_end_tag_name()
307 tkz->token->end = data; in lxb_html_tokenizer_state_rcdata_end_tag_name()
[all …]
H A Dstate_script.c354 tkz->token->begin = tkz->temp; in lxb_html_tokenizer_state_script_data_end_tag_name()
355 tkz->token->end = data; in lxb_html_tokenizer_state_script_data_end_tag_name()
389 tkz->token->tag_id = LXB_TAG__TEXT; in lxb_html_tokenizer_state_script_data_end_tag_name()
396 tkz->token->tag_id = tkz->tmp_tag_id; in lxb_html_tokenizer_state_script_data_end_tag_name()
397 tkz->token->begin = tkz->temp; in lxb_html_tokenizer_state_script_data_end_tag_name()
398 tkz->token->end = data; in lxb_html_tokenizer_state_script_data_end_tag_name()
765 tkz->token->end = data; in lxb_html_tokenizer_state_script_data_escaped_end_tag_name()
800 tkz->token->tag_id = LXB_TAG__TEXT; in lxb_html_tokenizer_state_script_data_escaped_end_tag_name()
807 tkz->token->tag_id = tkz->tmp_tag_id; in lxb_html_tokenizer_state_script_data_escaped_end_tag_name()
808 tkz->token->begin = tkz->temp; in lxb_html_tokenizer_state_script_data_escaped_end_tag_name()
[all …]
/php-src/ext/tokenizer/tests/
H A Dbad_character.phpt15 foreach (token_get_all($code) as $token) {
16 if (is_array($token)) {
17 echo token_name($token[0]), " ", strlen($token[1]), "\n";
19 echo $token, "\n";
H A Dbug76991.phpt18 foreach (token_get_all($code) as $token) {
19 if (is_array($token)) {
20 echo token_name($token[0]) . ": " .str_replace("\n", '\n', $token[1]);
22 echo $token;
H A Dphp_tag_only.phpt10 foreach (token_get_all("<?php") as $token) {
11 echo token_name($token[0]), "\n";
14 foreach (token_get_all("Foobar<?php") as $token) {
15 echo token_name($token[0]), "\n";
H A Dphp_tag_only_2.phpt10 foreach (token_get_all("<?php") as $token) {
11 echo token_name($token[0]), "\n";
14 foreach (token_get_all("Foobar<?php") as $token) {
15 echo token_name($token[0]), "\n";
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";
H A Dbug81342.phpt2 Bug #81342: New ampersand token parsing depends on new line after it
11 foreach ($tokens as $token) {
12 echo $token->getTokenName(), "\n";
H A DPhpToken_extension.phpt23 foreach (MyPhpToken::tokenize($code) as $token) {
24 echo $token->getLoweredText();
26 if ($token->extra !== 123) {
H A Dnamespaced_names.phpt17 foreach (PhpToken::tokenize($code) as $token) {
18 echo "{$token->getTokenName()}: \"$token->text\"\n";
/php-src/ext/dom/lexbor/lexbor/css/at_rule/
H A Dstate.h19 const lxb_css_syntax_token_t *token, void *ctx);
23 const lxb_css_syntax_token_t *token, void *ctx);
26 const lxb_css_syntax_token_t *token, void *ctx);
29 const lxb_css_syntax_token_t *token, void *ctx);
/php-src/ext/dom/lexbor/lexbor/html/
H A Dtree.h27 lxb_html_token_t *token);
108 lxb_html_token_t *token);
168 lxb_html_token_t *token);
172 lxb_html_token_t *token);
212 lxb_html_token_t *token,
308 lxb_html_token_t *token) in lxb_html_tree_insert_html_element() argument
328 lxb_html_token_t *token) in lxb_html_tree_acknowledge_token_self_closing() argument
330 if ((token->type & LXB_HTML_TOKEN_TYPE_CLOSE_SELF) == 0) { in lxb_html_tree_acknowledge_token_self_closing()
334 bool is_void = lxb_html_tag_is_void(token->tag_id); in lxb_html_tree_acknowledge_token_self_closing()
337 lxb_html_tree_parse_error(tree, token, in lxb_html_tree_acknowledge_token_self_closing()
[all …]
H A Dtree.c211 return token; in lxb_html_tree_token_callback()
252 return tree->mode(tree, token); in lxb_html_tree_construction_dispatcher()
261 return tree->mode(tree, token); in lxb_html_tree_construction_dispatcher()
265 return tree->mode(tree, token); in lxb_html_tree_construction_dispatcher()
272 && token->tag_id == LXB_TAG_SVG) in lxb_html_tree_construction_dispatcher()
274 return tree->mode(tree, token); in lxb_html_tree_construction_dispatcher()
286 return tree->mode(tree, token); in lxb_html_tree_construction_dispatcher()
430 node->line = token->line; in lxb_html_tree_create_element_for_token()
436 if (token->base_element == NULL) { in lxb_html_tree_create_element_for_token()
676 size = token->text_end - token->text_start; in lxb_html_tree_insert_character()
[all …]
/php-src/ext/standard/tests/strings/
H A Dstrtok_basic.phpt13 $token = ' ().';
16 echo "\nThe token string is:\n\"$token\"\n";
20 var_dump( strtok($str, $token) );
24 var_dump( strtok($token) );
35 The token string is:
/php-src/ext/dom/lexbor/lexbor/css/
H A Dstate.h19 const lxb_css_syntax_token_t *token, void *ctx);
23 const lxb_css_syntax_token_t *token, void *ctx);
27 const lxb_css_syntax_token_t *token, void *ctx);
/php-src/Zend/
H A Dzend_ini_parser.y336 %token TC_SECTION
337 %token TC_RAW
338 %token TC_CONSTANT
339 %token TC_NUMBER
340 %token TC_STRING
342 %token TC_LABEL
343 %token TC_OFFSET
345 %token TC_VARNAME
348 %token BOOL_TRUE
349 %token BOOL_FALSE
[all …]
/php-src/ext/dom/lexbor/patches/
H A D0001-Expose-line-and-column-information-for-use-in-PHP.patch8 source/lexbor/html/token.h | 2 ++
30 diff --git a/source/lexbor/html/token.h b/source/lexbor/html/token.h
32 --- a/source/lexbor/html/token.h
33 +++ b/source/lexbor/html/token.h
126 + node->line = token->line;
148 + node->line = token->line;
162 - entry->begin = token->begin;
163 - entry->end = token->end;
164 + entry->line = token->line;
165 + entry->column = token->column;
[all …]
/php-src/ext/dom/
H A Dtoken_list.c48 ZVAL_STR(&zv, token); in dom_add_token()
90 zend_string *token; in dom_ordered_set_serializer() local
110 memcpy(ptr, ZSTR_VAL(token), ZSTR_LEN(token)); in dom_ordered_set_serializer()
111 ptr += ZSTR_LEN(token); in dom_ordered_set_serializer()
406 zend_string *token; in PHP_METHOD() local
408 Z_PARAM_PATH_STR(token) in PHP_METHOD()
511 zend_string *token; in PHP_METHOD() local
514 Z_PARAM_PATH_STR(token) in PHP_METHOD()
561 Z_PARAM_PATH_STR(token) in PHP_METHOD()
599 zend_string *token; in PHP_METHOD() local
[all …]
/php-src/ext/tokenizer/
H A Dtokenizer.c285 zval token; in add_token() local
288 ZVAL_OBJ(&token, obj); in add_token()
305 array_init_size(&token, 3); in add_token()
325 zval token; in tokenize() local
347 if (Z_TYPE(token) != IS_UNDEF) { in tokenize()
348 zval_ptr_dtor_nogc(&token); in tokenize()
349 ZVAL_UNDEF(&token); in tokenize()
420 if (token == END) break; in on_event()
423 token = T_CLOSE_TAG; in on_event()
425 token = T_OPEN_TAG_WITH_ECHO; in on_event()
[all …]
/php-src/ext/dom/lexbor/lexbor/html/tree/insertion_mode/
H A Dtext.c15 lxb_html_token_t *token) in lxb_html_tree_insertion_mode_text() argument
20 switch (token->tag_id) { in lxb_html_tree_insertion_mode_text()
22 tree->status = lxb_html_tree_insert_character(tree, token, NULL); in lxb_html_tree_insertion_mode_text()
33 lxb_html_tree_parse_error(tree, token, in lxb_html_tree_insertion_mode_text()
/php-src/ext/date/tests/
H A D005.phpt19 Warning: idate(): Unrecognized date format token in %s on line %d
25 Warning: idate(): Unrecognized date format token in %s on line %d
29 Warning: idate(): Unrecognized date format token in %s on line %d
32 Warning: idate(): Unrecognized date format token in %s on line %d
/php-src/win32/
H A Dsendmail.c390 char *tempMailTo, *token, *token_state; in SendText() local
445 while (token != NULL) in SendText()
447 SMTP_SKIP_SPACE(token); in SendText()
466 while (token != NULL) in SendText()
468 SMTP_SKIP_SPACE(token); in SendText()
506 while (token != NULL) in SendText()
508 SMTP_SKIP_SPACE(token); in SendText()
531 while (token != NULL) in SendText()
533 SMTP_SKIP_SPACE(token); in SendText()
579 while (token != NULL) in SendText()
[all …]

Completed in 199 milliseconds

12345678910