CUBRID Engine
latest
|
Go to the source code of this file.
Macros | |
#define | MAX_UNGET_SIZE 16 |
#define | WSPACE_CHAR 0xa1a1 |
#define | DBCS_UNGET_RETURN(X, Y) do { *dbcs_Unget_buf++ = (X); return(Y); } while(0) |
#define | DBCS_STATUS_RETURN(X, Y) do { dbcs_Input_status = X; return(Y); } while(0) |
#define | DBCS_STATUS_UNGET_RETURN(X, Y, Z) |
#define | DBCS_NEXT_CHAR(p) ((p->next_byte)(p)) |
Functions | |
static int | dbcs_get_next_w_char (PARSER_CONTEXT *parser) |
static int | dbcs_convert_w_char (int input_char) |
static int | dbcs_get_next_token_wchar (PARSER_CONTEXT *parser) |
static int | dbcs_process_csql (PARSER_CONTEXT *parser, int converted_char) |
static int | dbcs_process_double_quote_string (PARSER_CONTEXT *parser, int input_char, int converted_char) |
static int | dbcs_process_double_quote_string_octal (PARSER_CONTEXT *parser, int input_char, int converted_char) |
static int | dbcs_process_double_quote_string_hexa (PARSER_CONTEXT *parser, int input_char, int converted_char) |
static int | dbcs_process_double_quote_string_decimal (PARSER_CONTEXT *parser, int input_char, int converted_char) |
static int | dbcs_process_single_quote_string (PARSER_CONTEXT *parser, int input_char, int converted_char) |
static int | dbcs_process_c_comment (PARSER_CONTEXT *parser, int input_char, int converted_char) |
void | dbcs_start_input (void) |
int | dbcs_get_next (PARSER_CONTEXT *parser) |
Variables | |
static int | DBCS_UNGET_BUF [MAX_UNGET_SIZE] |
static int * | dbcs_Unget_buf |
static unsigned int | dbcs_Latter_byte |
static int | dbcs_Latter_flag |
static DBCS_INPUT_STATUS | dbcs_Input_status |
Definition at line 44 of file double_byte_support.c.
Referenced by dbcs_get_next_w_char().
#define DBCS_STATUS_RETURN | ( | X, | |
Y | |||
) | do { dbcs_Input_status = X; return(Y); } while(0) |
Definition at line 37 of file double_byte_support.c.
Referenced by dbcs_get_next_token_wchar(), and dbcs_process_c_comment().
#define DBCS_STATUS_UNGET_RETURN | ( | X, | |
Y, | |||
Z | |||
) |
Definition at line 40 of file double_byte_support.c.
Referenced by dbcs_process_double_quote_string(), and dbcs_process_single_quote_string().
#define DBCS_UNGET_RETURN | ( | X, | |
Y | |||
) | do { *dbcs_Unget_buf++ = (X); return(Y); } while(0) |
Definition at line 34 of file double_byte_support.c.
Referenced by dbcs_process_c_comment(), dbcs_process_csql(), dbcs_process_double_quote_string(), and dbcs_process_single_quote_string().
#define MAX_UNGET_SIZE 16 |
Definition at line 31 of file double_byte_support.c.
#define WSPACE_CHAR 0xa1a1 |
Definition at line 32 of file double_byte_support.c.
Referenced by dbcs_convert_w_char().
enum DBCS_INPUT_STATUS |
Definition at line 46 of file double_byte_support.c.
|
static |
Definition at line 703 of file double_byte_support.c.
References dbcs_Input_status, dbcs_Unget_buf, DQS_, DQS_TRANSPARENT_, DQS_TRANSPARENT_2, SQS_, SQS_TRANSPARENT_, and WSPACE_CHAR.
Referenced by dbcs_get_next_token_wchar(), dbcs_process_c_comment(), dbcs_process_csql(), dbcs_process_double_quote_string(), and dbcs_process_single_quote_string().
int dbcs_get_next | ( | PARSER_CONTEXT * | parser | ) |
Definition at line 102 of file double_byte_support.c.
References dbcs_get_next_token_wchar(), dbcs_Latter_byte, and dbcs_Latter_flag.
Referenced by parser_parse_file(), parser_parse_string_with_escapes(), and pt_init_one_statement_parser().
|
static |
Definition at line 139 of file double_byte_support.c.
References C_COMMENT_, C_COMMENT_BEGIN_, CPP_COMMENT_, CPP_COMMENT_BEGIN_, CSQL_, CSQL_BEGIN_, dbcs_convert_w_char(), dbcs_get_next_w_char(), dbcs_Input_status, dbcs_process_c_comment(), dbcs_process_csql(), dbcs_process_double_quote_string(), dbcs_process_double_quote_string_decimal(), dbcs_process_double_quote_string_hexa(), dbcs_process_double_quote_string_octal(), dbcs_process_single_quote_string(), DBCS_STATUS_RETURN, DQS_, DQS_DECIMAL_, DQS_HEXA_, DQS_HEXA_BEGIN_, DQS_HEXA_BEGIN_2, DQS_OCTAL_, DQS_TRANSPARENT_, DQS_TRANSPARENT_2, SQL_COMMENT_, SQL_COMMENT_BEGIN_, SQS_, and SQS_TRANSPARENT_.
Referenced by dbcs_get_next().
|
static |
Definition at line 662 of file double_byte_support.c.
References DBCS_NEXT_CHAR, DBCS_UNGET_BUF, and dbcs_Unget_buf.
Referenced by dbcs_get_next_token_wchar(), dbcs_process_c_comment(), dbcs_process_csql(), dbcs_process_double_quote_string(), and dbcs_process_single_quote_string().
|
static |
Definition at line 555 of file double_byte_support.c.
References CSQL_BEGIN_, dbcs_convert_w_char(), dbcs_get_next_w_char(), DBCS_STATUS_RETURN, dbcs_Unget_buf, and DBCS_UNGET_RETURN.
Referenced by dbcs_get_next_token_wchar().
|
static |
Definition at line 598 of file double_byte_support.c.
References C_COMMENT_BEGIN_, CPP_COMMENT_BEGIN_, dbcs_convert_w_char(), dbcs_get_next_w_char(), dbcs_Input_status, DBCS_UNGET_RETURN, DQS_, SQL_COMMENT_BEGIN_, and SQS_.
Referenced by dbcs_get_next_token_wchar().
|
static |
Definition at line 320 of file double_byte_support.c.
References CSQL_, dbcs_convert_w_char(), dbcs_get_next_w_char(), DBCS_STATUS_UNGET_RETURN, dbcs_Unget_buf, DBCS_UNGET_RETURN, DQS_DECIMAL_, DQS_HEXA_BEGIN_2, DQS_OCTAL_, and DQS_TRANSPARENT_.
Referenced by dbcs_get_next_token_wchar(), dbcs_process_double_quote_string_decimal(), dbcs_process_double_quote_string_hexa(), and dbcs_process_double_quote_string_octal().
|
static |
Definition at line 266 of file double_byte_support.c.
References dbcs_Input_status, dbcs_process_double_quote_string(), and DQS_.
Referenced by dbcs_get_next_token_wchar().
|
static |
Definition at line 241 of file double_byte_support.c.
References dbcs_Input_status, dbcs_process_double_quote_string(), and DQS_.
Referenced by dbcs_get_next_token_wchar().
|
static |
Definition at line 290 of file double_byte_support.c.
References dbcs_Input_status, dbcs_process_double_quote_string(), and DQS_.
Referenced by dbcs_get_next_token_wchar().
|
static |
Definition at line 481 of file double_byte_support.c.
References CSQL_, dbcs_convert_w_char(), dbcs_get_next_w_char(), DBCS_STATUS_UNGET_RETURN, DBCS_UNGET_RETURN, and SQS_TRANSPARENT_.
Referenced by dbcs_get_next_token_wchar().
void dbcs_start_input | ( | void | ) |
Definition at line 89 of file double_byte_support.c.
References CSQL_, dbcs_Input_status, dbcs_Latter_flag, DBCS_UNGET_BUF, and dbcs_Unget_buf.
Referenced by pt_init_one_statement_parser().
|
static |
Definition at line 71 of file double_byte_support.c.
Referenced by dbcs_convert_w_char(), dbcs_get_next_token_wchar(), dbcs_process_csql(), dbcs_process_double_quote_string_decimal(), dbcs_process_double_quote_string_hexa(), dbcs_process_double_quote_string_octal(), and dbcs_start_input().
|
static |
Definition at line 69 of file double_byte_support.c.
Referenced by dbcs_get_next().
|
static |
Definition at line 70 of file double_byte_support.c.
Referenced by dbcs_get_next(), and dbcs_start_input().
|
static |
Definition at line 67 of file double_byte_support.c.
Referenced by dbcs_get_next_w_char(), and dbcs_start_input().
|
static |
Definition at line 68 of file double_byte_support.c.
Referenced by dbcs_convert_w_char(), dbcs_get_next_w_char(), dbcs_process_c_comment(), dbcs_process_double_quote_string(), and dbcs_start_input().