#include "regenc.h"Go to the source code of this file.
| #define DEBUG_GB18030 | ( | arg | ) |
| #define RETURN | ( | n | ) |
Value:
return s == ACCEPT ? ONIGENC_CONSTRUCT_MBCLEN_CHARFOUND(n) : \ ONIGENC_CONSTRUCT_MBCLEN_INVALID()
| enum state |
| static int gb18030_code_to_mbc | ( | OnigCodePoint | code, | |
| UChar * | buf, | |||
| OnigEncoding | enc | |||
| ) | [static] |
| static int gb18030_is_allowed_reverse_match | ( | const UChar * | s, | |
| const UChar *end | ARG_UNUSED, | |||
| OnigEncoding enc | ARG_UNUSED | |||
| ) | [static] |
| static int gb18030_is_code_ctype | ( | OnigCodePoint | code, | |
| unsigned int | ctype, | |||
| OnigEncoding | enc | |||
| ) | [static] |
| static UChar* gb18030_left_adjust_char_head | ( | const UChar * | start, | |
| const UChar * | s, | |||
| const UChar * | end, | |||
| OnigEncoding | enc | |||
| ) | [static] |
Definition at line 248 of file gb18030.c.
References C1, C2, C4, CM, DEBUG_GB18030, GB18030_MAP, S_even_C4CM, S_even_CM_even_C4CM, S_even_CM_even_CMC4, S_even_CM_odd_C4CM, S_even_CM_odd_CMC4, S_even_CM_one_CX, S_even_CMC4, S_odd_C4CM, S_odd_CM_even_C4CM, S_odd_CM_even_CMC4, S_odd_CM_odd_C4CM, S_odd_CM_odd_CMC4, S_odd_CM_one_CX, S_odd_CMC4, S_one_C2, S_one_C4, S_one_C4_even_CMC4, S_one_C4_odd_CMC4, S_one_CM, S_one_CM_even_C4CM, S_one_CM_odd_C4CM, S_one_CMC4, S_START, and UChar.
| static int gb18030_mbc_case_fold | ( | OnigCaseFoldType | flag, | |
| const UChar ** | pp, | |||
| const UChar * | end, | |||
| UChar * | lower, | |||
| OnigEncoding | enc | |||
| ) | [static] |
| static int gb18030_mbc_enc_len | ( | const UChar * | p, | |
| const UChar * | e, | |||
| OnigEncoding enc | ARG_UNUSED | |||
| ) | [static] |
Definition at line 146 of file gb18030.c.
References ONIGENC_CONSTRUCT_MBCLEN_NEEDMORE, RETURN, and trans.
| static OnigCodePoint gb18030_mbc_to_code | ( | const UChar * | p, | |
| const UChar * | end, | |||
| OnigEncoding | enc | |||
| ) | [static] |
| OnigEncodingDefine | ( | gb18030 | , | |
| GB18030 | ||||
| ) |
const char GB18030_MAP[] [static] |
Initial value:
{
C1, C1, C1, C1, C1, C1, C1, C1, C1, C1, C1, C1, C1, C1, C1, C1,
C1, C1, C1, C1, C1, C1, C1, C1, C1, C1, C1, C1, C1, C1, C1, C1,
C1, C1, C1, C1, C1, C1, C1, C1, C1, C1, C1, C1, C1, C1, C1, C1,
C4, C4, C4, C4, C4, C4, C4, C4, C4, C4, C1, C1, C1, C1, C1, C1,
C2, C2, C2, C2, C2, C2, C2, C2, C2, C2, C2, C2, C2, C2, C2, C2,
C2, C2, C2, C2, C2, C2, C2, C2, C2, C2, C2, C2, C2, C2, C2, C2,
C2, C2, C2, C2, C2, C2, C2, C2, C2, C2, C2, C2, C2, C2, C2, C2,
C2, C2, C2, C2, C2, C2, C2, C2, C2, C2, C2, C2, C2, C2, C2, C1,
C2, CM, CM, CM, CM, CM, CM, CM, CM, CM, CM, CM, CM, CM, CM, CM,
CM, CM, CM, CM, CM, CM, CM, CM, CM, CM, CM, CM, CM, CM, CM, CM,
CM, CM, CM, CM, CM, CM, CM, CM, CM, CM, CM, CM, CM, CM, CM, CM,
CM, CM, CM, CM, CM, CM, CM, CM, CM, CM, CM, CM, CM, CM, CM, CM,
CM, CM, CM, CM, CM, CM, CM, CM, CM, CM, CM, CM, CM, CM, CM, CM,
CM, CM, CM, CM, CM, CM, CM, CM, CM, CM, CM, CM, CM, CM, CM, CM,
CM, CM, CM, CM, CM, CM, CM, CM, CM, CM, CM, CM, CM, CM, CM, CM,
CM, CM, CM, CM, CM, CM, CM, CM, CM, CM, CM, CM, CM, CM, CM, C1
}
Definition at line 46 of file gb18030.c.
Referenced by gb18030_is_allowed_reverse_match(), and gb18030_left_adjust_char_head().
1.4.7