#include <string.h>
#include "cr-token.h"
Go to the source code of this file.
Abstracts a css2 token.
Definition in file cr-token.c.
|
The destructor of the CRToken class.
Definition at line 628 of file cr-token.c. Referenced by cr_parser_parse_charset(), cr_parser_parse_font_face(), cr_parser_parse_media(), cr_parser_parse_page(), cr_parser_parse_prio(), cr_parser_parse_statement_core(), cr_parser_parse_term(), cr_parser_try_to_skip_spaces_and_comments(), cr_tknzr_consume_chars(), cr_tknzr_destroy(), cr_tknzr_get_cur_byte_addr(), cr_tknzr_get_cur_pos(), cr_tknzr_get_nb_bytes_left(), cr_tknzr_get_next_token(), cr_tknzr_parse_token(), cr_tknzr_peek_byte(), cr_tknzr_peek_char(), cr_tknzr_read_char(), cr_tknzr_seek_index(), and cr_tknzr_set_cur_pos(). |
|
Default constructor of the CRToken class.
Definition at line 133 of file cr-token.c. References cr_utils_trace_info. Referenced by cr_tknzr_get_next_token(). |
|
Definition at line 431 of file cr-token.c. References ANGLE_TK, CR_BAD_PARAM_ERROR, CR_OK, _CRToken::extra_type, _CRToken::num, _CRToken::type, and _CRToken::u. Referenced by cr_tknzr_get_next_token(). |
|
Definition at line 376 of file cr-token.c. References ATKEYWORD_TK, CR_BAD_PARAM_ERROR, CR_OK, _CRToken::str, _CRToken::type, and _CRToken::u. Referenced by cr_tknzr_get_next_token(). |
|
Definition at line 612 of file cr-token.c. References BC_TK, CR_BAD_PARAM_ERROR, CR_OK, and _CRToken::type. Referenced by cr_tknzr_get_next_token(). |
|
Definition at line 600 of file cr-token.c. References BO_TK, CR_BAD_PARAM_ERROR, CR_OK, and _CRToken::type. Referenced by cr_tknzr_get_next_token(). |
|
Definition at line 564 of file cr-token.c. References CBC_TK, CR_BAD_PARAM_ERROR, CR_OK, and _CRToken::type. Referenced by cr_tknzr_get_next_token(). |
|
Definition at line 552 of file cr-token.c. References CBO_TK, CR_BAD_PARAM_ERROR, CR_OK, and _CRToken::type. Referenced by cr_tknzr_get_next_token(). |
|
Sets the type of the current token to CDC_TK (CDC as said by the css2 spec).
Definition at line 195 of file cr-token.c. References CDC_TK, CR_BAD_PARAM_ERROR, CR_OK, and _CRToken::type. Referenced by cr_tknzr_get_next_token(). |
|
Sets the type of the current instance of CRToken to 'CDO_TK' (CDO as said by the css2 spec).
Definition at line 176 of file cr-token.c. References CDO_TK, CR_BAD_PARAM_ERROR, CR_OK, and _CRToken::type. Referenced by cr_tknzr_get_next_token(). |
|
Definition at line 365 of file cr-token.c. References CHARSET_SYM_TK, CR_BAD_PARAM_ERROR, CR_OK, and _CRToken::type. Referenced by cr_tknzr_get_next_token(). |
|
Definition at line 245 of file cr-token.c. References COMMENT_TK, CR_BAD_PARAM_ERROR, CR_OK, _CRToken::str, _CRToken::type, and _CRToken::u. Referenced by cr_tknzr_get_next_token(). |
|
Sets the type of the current instance of CRToken to DASHMATCH_TK (DASHMATCH as said by the css2 spec).
Definition at line 233 of file cr-token.c. References CR_BAD_PARAM_ERROR, CR_OK, DASHMATCH_TK, and _CRToken::type. Referenced by cr_tknzr_get_next_token(). |
|
Definition at line 527 of file cr-token.c. References CR_BAD_PARAM_ERROR, CR_OK, DELIM_TK, _CRToken::type, _CRToken::u, and _CRToken::unichar. Referenced by cr_tknzr_get_next_token(). |
|
Definition at line 476 of file cr-token.c. References CR_BAD_PARAM_ERROR, CR_OK, _CRToken::dimen, DIMEN_TK, _CRToken::num, _CRToken::type, and _CRToken::u. Referenced by cr_tknzr_get_next_token(). |
|
Definition at line 396 of file cr-token.c. References CR_BAD_PARAM_ERROR, CR_OK, EMS_TK, _CRToken::num, _CRToken::type, and _CRToken::u. Referenced by cr_tknzr_get_next_token(). |
|
Definition at line 406 of file cr-token.c. References CR_BAD_PARAM_ERROR, CR_OK, EXS_TK, _CRToken::num, _CRToken::type, and _CRToken::u. Referenced by cr_tknzr_get_next_token(). |
|
Definition at line 354 of file cr-token.c. References CR_BAD_PARAM_ERROR, CR_OK, FONT_FACE_SYM_TK, and _CRToken::type. Referenced by cr_tknzr_get_next_token(). |
|
Definition at line 461 of file cr-token.c. References CR_BAD_PARAM_ERROR, CR_OK, _CRToken::extra_type, FREQ_TK, _CRToken::num, _CRToken::type, and _CRToken::u. Referenced by cr_tknzr_get_next_token(). |
|
Definition at line 282 of file cr-token.c. References CR_BAD_PARAM_ERROR, CR_OK, FUNCTION_TK, _CRToken::str, _CRToken::type, and _CRToken::u. Referenced by cr_tknzr_get_next_token(). |
|
Definition at line 294 of file cr-token.c. References CR_BAD_PARAM_ERROR, CR_OK, HASH_TK, _CRToken::str, _CRToken::type, and _CRToken::u. Referenced by cr_tknzr_get_next_token(). |
|
Definition at line 270 of file cr-token.c. References CR_BAD_PARAM_ERROR, CR_OK, IDENT_TK, _CRToken::str, _CRToken::type, and _CRToken::u. Referenced by cr_tknzr_get_next_token(). |
|
Definition at line 318 of file cr-token.c. References CR_BAD_PARAM_ERROR, CR_OK, IMPORT_SYM_TK, and _CRToken::type. Referenced by cr_tknzr_get_next_token(). |
|
Definition at line 387 of file cr-token.c. References CR_BAD_PARAM_ERROR, CR_OK, IMPORTANT_SYM_TK, and _CRToken::type. Referenced by cr_tknzr_get_next_token(). |
|
Sets the type of the current instance of CRToken to INCLUDES_TK (INCLUDES as said by the css2 spec).
Definition at line 214 of file cr-token.c. References CR_BAD_PARAM_ERROR, CR_OK, INCLUDES_TK, and _CRToken::type. Referenced by cr_tknzr_get_next_token(). |
|
Definition at line 416 of file cr-token.c. References CR_BAD_PARAM_ERROR, CR_OK, _CRToken::extra_type, LENGTH_TK, _CRToken::num, _CRToken::type, and _CRToken::u. Referenced by cr_tknzr_get_next_token(). |
|
Definition at line 342 of file cr-token.c. References CR_BAD_PARAM_ERROR, CR_OK, MEDIA_SYM_TK, and _CRToken::type. Referenced by cr_tknzr_get_next_token(). |
|
Definition at line 502 of file cr-token.c. References CR_BAD_PARAM_ERROR, CR_OK, _CRToken::num, NUMBER_TK, _CRToken::type, and _CRToken::u. Referenced by cr_tknzr_get_next_token(). |
|
Definition at line 330 of file cr-token.c. References CR_BAD_PARAM_ERROR, CR_OK, PAGE_SYM_TK, and _CRToken::type. Referenced by cr_tknzr_get_next_token(). |
|
Definition at line 588 of file cr-token.c. References CR_BAD_PARAM_ERROR, CR_OK, PC_TK, and _CRToken::type. Referenced by cr_tknzr_get_next_token(). |
|
Definition at line 489 of file cr-token.c. References CR_BAD_PARAM_ERROR, CR_OK, _CRToken::num, PERCENTAGE_TK, _CRToken::type, and _CRToken::u. Referenced by cr_tknzr_get_next_token(). |
|
Definition at line 576 of file cr-token.c. References CR_BAD_PARAM_ERROR, CR_OK, PO_TK, and _CRToken::type. Referenced by cr_tknzr_get_next_token(). |
|
Definition at line 306 of file cr-token.c. References CR_BAD_PARAM_ERROR, CR_OK, _CRToken::rgb, RGB_TK, _CRToken::type, and _CRToken::u. Referenced by cr_tknzr_get_next_token(). |
|
Sets the type of curren instance of CRToken to 'S_TK' (S in the css2 spec).
Definition at line 157 of file cr-token.c. References CR_BAD_PARAM_ERROR, CR_OK, S_TK, and _CRToken::type. Referenced by cr_tknzr_get_next_token(). |
|
Definition at line 540 of file cr-token.c. References CR_BAD_PARAM_ERROR, CR_OK, SEMICOLON_TK, and _CRToken::type. Referenced by cr_tknzr_get_next_token(). |
|
Definition at line 256 of file cr-token.c. References CR_BAD_PARAM_ERROR, CR_OK, _CRToken::str, STRING_TK, _CRToken::type, and _CRToken::u. Referenced by cr_tknzr_get_next_token(). |
|
Definition at line 446 of file cr-token.c. References CR_BAD_PARAM_ERROR, CR_OK, _CRToken::extra_type, _CRToken::num, TIME_TK, _CRToken::type, and _CRToken::u. Referenced by cr_tknzr_get_next_token(). |
|
Definition at line 514 of file cr-token.c. References CR_BAD_PARAM_ERROR, CR_OK, _CRToken::str, _CRToken::type, _CRToken::u, and URI_TK. Referenced by cr_tknzr_get_next_token(). |