File double_byte_support.c
FileList > cubrid > src > parser > double_byte_support.c
Go to the source code of this file
#include "config.h"
#include <stdio.h>
#include "parser.h"
#include "language_support.h"
Public Types
Public Static Attributes
Public Functions
Public Static Functions
| Type |
Name |
| int |
dbcs_convert_w_char (int input_char)
|
| int |
dbcs_get_next_token_wchar (PARSER_CONTEXT * parser)
|
| int |
dbcs_get_next_w_char (PARSER_CONTEXT * parser)
|
| int |
dbcs_process_c_comment (PARSER_CONTEXT * parser, int input_char, int converted_char)
|
| int |
dbcs_process_csql (PARSER_CONTEXT * parser, int converted_char)
|
| int |
dbcs_process_double_quote_string (PARSER_CONTEXT * parser, int input_char, int converted_char)
|
| int |
dbcs_process_double_quote_string_decimal (PARSER_CONTEXT * parser, int input_char, int converted_char)
|
| int |
dbcs_process_double_quote_string_hexa (PARSER_CONTEXT * parser, int input_char, int converted_char)
|
| int |
dbcs_process_double_quote_string_octal (PARSER_CONTEXT * parser, int input_char, int converted_char)
|
| int |
dbcs_process_single_quote_string (PARSER_CONTEXT * parser, int input_char, int converted_char)
|
Macros
| Type |
Name |
| define |
DBCS_NEXT_CHAR (p) (([**p**](dynamic__load_8c.md#variable-p)->next\_byte)([**p**](dynamic__load_8c.md#variable-p)))
|
| define |
DBCS_STATUS_RETURN (X, Y) [**do**](dynamic__load_8c.md#variable-do) { [**dbcs\_Input\_status**](double__byte__support_8c.md#variable-dbcs_input_status) = [**X**](broker__monitor_8c.md#function-timeout); [**return**](broker__monitor_8c.md#function-timeout)([**Y**](broker__monitor_8c.md#function-timeout)); } [**while**](dynamic__load_8c.md#function-while)(0)
|
| define |
DBCS_STATUS_UNGET_RETURN (X, Y, Z) /* multi line expression */
|
| define |
DBCS_UNGET_RETURN (X, Y) [**do**](dynamic__load_8c.md#variable-do) { \*[**dbcs\_Unget\_buf**](double__byte__support_8c.md#variable-dbcs_unget_buf)++ = ([**X**](broker__monitor_8c.md#function-timeout)); [**return**](broker__monitor_8c.md#function-timeout)([**Y**](broker__monitor_8c.md#function-timeout)); } [**while**](dynamic__load_8c.md#function-while)(0)
|
| define |
MAX_UNGET_SIZE 16
|
| define |
WSPACE_CHAR 0xa1a1
|
Public Types Documentation
enum DBCS_INPUT_STATUS {
CSQL_,
CSQL_BEGIN_,
C_COMMENT_,
C_COMMENT_BEGIN_,
SQL_COMMENT_,
SQL_COMMENT_BEGIN_,
CPP_COMMENT_,
CPP_COMMENT_BEGIN_,
DQS_,
DQS_OCTAL_,
DQS_HEXA_,
DQS_HEXA_BEGIN_,
DQS_HEXA_BEGIN_2,
DQS_DECIMAL_,
DQS_TRANSPARENT_,
DQS_TRANSPARENT_2,
SQS_,
SQS_TRANSPARENT_
};
Public Static Attributes Documentation
variable DBCS_UNGET_BUF
DBCS_INPUT_STATUS dbcs_Input_status;
variable dbcs_Latter_byte
unsigned int dbcs_Latter_byte;
variable dbcs_Latter_flag
variable dbcs_Unget_buf
Public Functions Documentation
function dbcs_get_next
int dbcs_get_next (
PARSER_CONTEXT * parser
)
void dbcs_start_input (
void
)
Public Static Functions Documentation
function dbcs_convert_w_char
static int dbcs_convert_w_char (
int input_char
)
function dbcs_get_next_token_wchar
static int dbcs_get_next_token_wchar (
PARSER_CONTEXT * parser
)
function dbcs_get_next_w_char
static int dbcs_get_next_w_char (
PARSER_CONTEXT * parser
)
static int dbcs_process_c_comment (
PARSER_CONTEXT * parser,
int input_char,
int converted_char
)
function dbcs_process_csql
static int dbcs_process_csql (
PARSER_CONTEXT * parser,
int converted_char
)
function dbcs_process_double_quote_string
static int dbcs_process_double_quote_string (
PARSER_CONTEXT * parser,
int input_char,
int converted_char
)
function dbcs_process_double_quote_string_decimal
static int dbcs_process_double_quote_string_decimal (
PARSER_CONTEXT * parser,
int input_char,
int converted_char
)
function dbcs_process_double_quote_string_hexa
static int dbcs_process_double_quote_string_hexa (
PARSER_CONTEXT * parser,
int input_char,
int converted_char
)
function dbcs_process_double_quote_string_octal
static int dbcs_process_double_quote_string_octal (
PARSER_CONTEXT * parser,
int input_char,
int converted_char
)
function dbcs_process_single_quote_string
static int dbcs_process_single_quote_string (
PARSER_CONTEXT * parser,
int input_char,
int converted_char
)
Macro Definition Documentation
define DBCS_NEXT_CHAR
#define DBCS_NEXT_CHAR (
p
) `(( p ->next_byte)( p ))`
define DBCS_STATUS_RETURN
#define DBCS_STATUS_RETURN (
X,
Y
) `do { dbcs_Input_status = X ; return ( Y ); } while (0)`
define DBCS_STATUS_UNGET_RETURN
#define DBCS_STATUS_UNGET_RETURN (
X,
Y,
Z
) `/* multi line expression */`
define DBCS_UNGET_RETURN
#define DBCS_UNGET_RETURN (
X,
Y
) `do { * dbcs_Unget_buf ++ = ( X ); return ( Y ); } while (0)`
define MAX_UNGET_SIZE
#define MAX_UNGET_SIZE `16`
define WSPACE_CHAR
#define WSPACE_CHAR `0xa1a1`
The documentation for this class was generated from the following file cubrid/src/parser/double_byte_support.c