/php-src/ext/dom/lexbor/lexbor/html/tokenizer/ |
H A D | state_rawtext.c | 110 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 D | state_doctype.c | 135 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 D | state_rcdata.c | 119 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 D | state_script.c | 354 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 D | bad_character.phpt | 15 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 D | bug76991.phpt | 18 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 D | php_tag_only.phpt | 10 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 D | php_tag_only_2.phpt | 10 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 D | token_get_all_variation19.phpt | 36 // 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 D | parse_errors.phpt | 15 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 D | bug81342.phpt | 2 Bug #81342: New ampersand token parsing depends on new line after it 11 foreach ($tokens as $token) { 12 echo $token->getTokenName(), "\n";
|
H A D | PhpToken_extension.phpt | 23 foreach (MyPhpToken::tokenize($code) as $token) { 24 echo $token->getLoweredText(); 26 if ($token->extra !== 123) {
|
H A D | namespaced_names.phpt | 17 foreach (PhpToken::tokenize($code) as $token) { 18 echo "{$token->getTokenName()}: \"$token->text\"\n";
|
/php-src/ext/dom/lexbor/lexbor/css/at_rule/ |
H A D | state.h | 19 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 D | tree.h | 27 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 D | tree.c | 211 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 D | strtok_basic.phpt | 13 $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 D | state.h | 19 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 D | zend_ini_parser.y | 336 %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 D | 0001-Expose-line-and-column-information-for-use-in-PHP.patch | 8 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 D | token_list.c | 48 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 D | tokenizer.c | 285 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 D | text.c | 15 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 D | 005.phpt | 19 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 D | sendmail.c | 390 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 …]
|