|
Ruby
1.9.3p448(2013-06-27revision41675)
|
#include "regenc.h"Go to the source code of this file.
| #define GBK_ISMB_FIRST | ( | byte | ) | (EncLen_GBK[byte] > 1) |
Definition at line 70 of file gbk.c.
Referenced by gbk_left_adjust_char_head().
| #define GBK_ISMB_TRAIL | ( | byte | ) | GBK_CAN_BE_TRAIL_TABLE[(byte)] |
Definition at line 71 of file gbk.c.
Referenced by gbk_is_allowed_reverse_match(), and gbk_left_adjust_char_head().
| #define RETURN | ( | n | ) |
return s == ACCEPT ? ONIGENC_CONSTRUCT_MBCLEN_CHARFOUND(n) : \ ONIGENC_CONSTRUCT_MBCLEN_INVALID()
| enum state_t |
| static int gbk_code_to_mbc | ( | OnigCodePoint | code, |
| UChar * | buf, | ||
| OnigEncoding | enc | ||
| ) | [static] |
Definition at line 139 of file gbk.c.
References onigenc_mb2_code_to_mbc().
| static int gbk_is_allowed_reverse_match | ( | const UChar * | s, |
| const UChar *end | ARG_UNUSED, | ||
| OnigEncoding enc | ARG_UNUSED | ||
| ) | [static] |
| static int gbk_is_code_ctype | ( | OnigCodePoint | code, |
| unsigned int | ctype, | ||
| OnigEncoding | enc | ||
| ) | [static] |
Definition at line 162 of file gbk.c.
References onigenc_mb2_is_code_ctype().
| static UChar* gbk_left_adjust_char_head | ( | const UChar * | start, |
| const UChar * | s, | ||
| const UChar * | end, | ||
| OnigEncoding | enc | ||
| ) | [static] |
Definition at line 168 of file gbk.c.
References enclen, GBK_ISMB_FIRST, GBK_ISMB_TRAIL, len, and UChar.
| static int gbk_mbc_case_fold | ( | OnigCaseFoldType | flag, |
| const UChar ** | pp, | ||
| const UChar * | end, | ||
| UChar * | lower, | ||
| OnigEncoding | enc | ||
| ) | [static] |
Definition at line 145 of file gbk.c.
References onigenc_mbn_mbc_case_fold().
| static int gbk_mbc_enc_len | ( | const UChar * | p, |
| const UChar * | e, | ||
| OnigEncoding enc | ARG_UNUSED | ||
| ) | [static] |
Definition at line 118 of file gbk.c.
References EncLen_GBK, ONIGENC_CONSTRUCT_MBCLEN_NEEDMORE, RETURN, and trans.
| static OnigCodePoint gbk_mbc_to_code | ( | const UChar * | p, |
| const UChar * | end, | ||
| OnigEncoding | enc | ||
| ) | [static] |
Definition at line 133 of file gbk.c.
References onigenc_mbn_mbc_to_code().
| OnigEncodingDefine | ( | gbk | , |
| GBK | |||
| ) |
const int EncLen_GBK[] [static] |
{
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1
}
Definition at line 32 of file gbk.c.
Referenced by gbk_mbc_enc_len().
const char GBK_CAN_BE_TRAIL_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