Libcroco
|
#include "cr-utils.h"
#include "cr-input.h"
#include "cr-num.h"
#include "cr-rgb.h"
#include "cr-string.h"
#include "cr-parsing-location.h"
Go to the source code of this file.
Data Structures | |
struct | _CRToken |
This class abstracts a css2 token. More... | |
Typedefs | |
typedef struct _CRToken | CRToken |
Enumerations | |
enum | CRTokenType { NO_TK, S_TK, CDO_TK, CDC_TK, INCLUDES_TK, DASHMATCH_TK, COMMENT_TK, STRING_TK, IDENT_TK, HASH_TK, IMPORT_SYM_TK, PAGE_SYM_TK, MEDIA_SYM_TK, FONT_FACE_SYM_TK, CHARSET_SYM_TK, ATKEYWORD_TK, IMPORTANT_SYM_TK, EMS_TK, EXS_TK, LENGTH_TK, ANGLE_TK, TIME_TK, FREQ_TK, DIMEN_TK, PERCENTAGE_TK, NUMBER_TK, RGB_TK, URI_TK, FUNCTION_TK, UNICODERANGE_TK, SEMICOLON_TK, CBO_TK, CBC_TK, PO_TK, PC_TK, BO_TK, BC_TK, DELIM_TK } |
enum | CRTokenExtraType { NO_ET = 0, LENGTH_PX_ET, LENGTH_CM_ET, LENGTH_MM_ET, LENGTH_IN_ET, LENGTH_PT_ET, LENGTH_PC_ET, ANGLE_DEG_ET, ANGLE_RAD_ET, ANGLE_GRAD_ET, TIME_MS_ET, TIME_S_ET, FREQ_HZ_ET, FREQ_KHZ_ET } |
Definition at line 96 of file cr-token.h.
enum CRTokenExtraType |
Enumerator | |
---|---|
NO_ET | |
LENGTH_PX_ET | |
LENGTH_CM_ET | |
LENGTH_MM_ET | |
LENGTH_IN_ET | |
LENGTH_PT_ET | |
LENGTH_PC_ET | |
ANGLE_DEG_ET | |
ANGLE_RAD_ET | |
ANGLE_GRAD_ET | |
TIME_MS_ET | |
TIME_S_ET | |
FREQ_HZ_ET | |
FREQ_KHZ_ET |
Definition at line 78 of file cr-token.h.
enum CRTokenType |
Definition at line 36 of file cr-token.h.
void cr_token_destroy | ( | CRToken * | a_this | ) |
The destructor of the CRToken class.
a_this | the current instance of CRToken. |
Definition at line 629 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_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_peek_byte(), cr_tknzr_peek_char(), cr_tknzr_read_char(), cr_tknzr_seek_index(), and cr_tknzr_set_cur_pos().
CRToken* cr_token_new | ( | void | ) |
Default constructor of the CRToken class.
Definition at line 134 of file cr-token.c.
References cr_utils_trace_info.
enum CRStatus cr_token_set_angle | ( | CRToken * | a_this, |
CRNum * | a_num, | ||
enum CRTokenExtraType | a_et | ||
) |
Definition at line 432 of file cr-token.c.
References CR_BAD_PARAM_ERROR.
Definition at line 377 of file cr-token.c.
References CR_BAD_PARAM_ERROR.
Definition at line 613 of file cr-token.c.
References CR_BAD_PARAM_ERROR.
Definition at line 601 of file cr-token.c.
References CR_BAD_PARAM_ERROR.
Definition at line 565 of file cr-token.c.
References CR_BAD_PARAM_ERROR.
Definition at line 553 of file cr-token.c.
References CR_BAD_PARAM_ERROR.
Sets the type of the current token to CDC_TK (CDC as said by the css2 spec).
a_this | the current instance of CRToken. |
Definition at line 196 of file cr-token.c.
References CR_BAD_PARAM_ERROR.
Sets the type of the current instance of CRToken to 'CDO_TK' (CDO as said by the css2 spec)
a_this | the current instance of CRToken. |
Definition at line 177 of file cr-token.c.
References CR_BAD_PARAM_ERROR.
Definition at line 366 of file cr-token.c.
References CR_BAD_PARAM_ERROR.
Definition at line 246 of file cr-token.c.
References CR_BAD_PARAM_ERROR.
Sets the type of the current instance of CRToken to DASHMATCH_TK (DASHMATCH as said by the css2 spec).
a_this | the current instance of CRToken. |
Definition at line 234 of file cr-token.c.
References CR_BAD_PARAM_ERROR.
Definition at line 528 of file cr-token.c.
References CR_BAD_PARAM_ERROR.
Definition at line 477 of file cr-token.c.
References CR_BAD_PARAM_ERROR.
Definition at line 397 of file cr-token.c.
References CR_BAD_PARAM_ERROR.
Definition at line 407 of file cr-token.c.
References CR_BAD_PARAM_ERROR.
Definition at line 355 of file cr-token.c.
References CR_BAD_PARAM_ERROR.
enum CRStatus cr_token_set_freq | ( | CRToken * | a_this, |
CRNum * | a_num, | ||
enum CRTokenExtraType | a_et | ||
) |
Definition at line 462 of file cr-token.c.
References CR_BAD_PARAM_ERROR.
Definition at line 283 of file cr-token.c.
References CR_BAD_PARAM_ERROR.
Definition at line 295 of file cr-token.c.
References CR_BAD_PARAM_ERROR.
Definition at line 271 of file cr-token.c.
References CR_BAD_PARAM_ERROR.
Definition at line 319 of file cr-token.c.
References CR_BAD_PARAM_ERROR.
Definition at line 388 of file cr-token.c.
References CR_BAD_PARAM_ERROR.
Sets the type of the current instance of CRToken to INCLUDES_TK (INCLUDES as said by the css2 spec).
a_this | the current instance of CRToken. |
Definition at line 215 of file cr-token.c.
References CR_BAD_PARAM_ERROR.
enum CRStatus cr_token_set_length | ( | CRToken * | a_this, |
CRNum * | a_num, | ||
enum CRTokenExtraType | a_et | ||
) |
Definition at line 417 of file cr-token.c.
References CR_BAD_PARAM_ERROR.
Definition at line 343 of file cr-token.c.
References CR_BAD_PARAM_ERROR.
Definition at line 503 of file cr-token.c.
References CR_BAD_PARAM_ERROR.
Definition at line 331 of file cr-token.c.
References CR_BAD_PARAM_ERROR.
Definition at line 589 of file cr-token.c.
References CR_BAD_PARAM_ERROR.
Definition at line 490 of file cr-token.c.
References CR_BAD_PARAM_ERROR.
Definition at line 577 of file cr-token.c.
References CR_BAD_PARAM_ERROR.
Definition at line 307 of file cr-token.c.
References CR_BAD_PARAM_ERROR.
Sets the type of curren instance of CRToken to 'S_TK' (S in the css2 spec)
a_this | the current instance of CRToken. |
Definition at line 158 of file cr-token.c.
References CR_BAD_PARAM_ERROR.
Definition at line 541 of file cr-token.c.
References CR_BAD_PARAM_ERROR.
Definition at line 257 of file cr-token.c.
References CR_BAD_PARAM_ERROR.
enum CRStatus cr_token_set_time | ( | CRToken * | a_this, |
CRNum * | a_num, | ||
enum CRTokenExtraType | a_et | ||
) |
Definition at line 447 of file cr-token.c.
References CR_BAD_PARAM_ERROR.
Definition at line 515 of file cr-token.c.
References CR_BAD_PARAM_ERROR.