|
Ruby
1.9.3p448(2013-06-27revision41675)
|
#include "regenc.h"Go to the source code of this file.
| #define DEBUG_GB18030 | ( | arg | ) |
Definition at line 34 of file gb18030.c.
Referenced by gb18030_left_adjust_char_head().
| #define RETURN | ( | n | ) |
return s == ACCEPT ? ONIGENC_CONSTRUCT_MBCLEN_CHARFOUND(n) : \ ONIGENC_CONSTRUCT_MBCLEN_INVALID()
| enum state |
| enum state_t |
| static int gb18030_code_to_mbc | ( | OnigCodePoint | code, |
| UChar * | buf, | ||
| OnigEncoding | enc | ||
| ) | [static] |
Definition at line 185 of file gb18030.c.
References onigenc_mb4_code_to_mbc().
| 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] |
Definition at line 208 of file gb18030.c.
References onigenc_mb4_is_code_ctype().
| 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] |
Definition at line 191 of file gb18030.c.
References onigenc_mbn_mbc_case_fold().
| 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] |
{
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().
Definition at line 68 of file gb18030.c.
Referenced by gb18030_mbc_enc_len().
1.7.6.1