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,
A,
A,
A,
A,
A,
A,
A,
A,
A,
A,
108 A,
A,
A,
A,
A,
A,
A,
A,
A,
A,
A,
A,
A,
A,
A,
A,
109 A,
A,
A,
A,
A,
A,
A,
A,
A,
A,
A,
A,
A,
A,
A,
A,
110 A,
A,
A,
A,
A,
A,
A,
A,
A,
A,
A,
A,
A,
A,
A,
A,
111 A,
A,
A,
A,
A,
A,
A,
A,
A,
A,
A,
A,
A,
A,
A, F
120 int firstbyte = *p++;
123 return s == ACCEPT ? ONIGENC_CONSTRUCT_MBCLEN_CHARFOUND(n) : \
124 ONIGENC_CONSTRUCT_MBCLEN_INVALID()
157 return onigenc_mbn_is_mbc_ambiguous(enc, flag, pp, end);
173 if (s <= start)
return (
UChar* )
s;
184 len =
enclen(enc, p, end);
185 if (p + len > s)
return (
UChar* )
p;
187 return (
UChar* )(p + ((s -
p) & ~1));
unsigned int OnigCodePoint
#define OnigEncodingDefine(f, n)
unsigned int OnigCaseFoldType
int onigenc_mbn_mbc_case_fold(OnigEncoding enc, OnigCaseFoldType flag ARG_UNUSED, const UChar **pp, const UChar *end ARG_UNUSED, UChar *lower)
int onigenc_mb2_code_to_mbclen(OnigCodePoint code, OnigEncoding enc ARG_UNUSED)
int onigenc_mb2_code_to_mbc(OnigEncoding enc, OnigCodePoint code, UChar *buf)
int onigenc_ascii_apply_all_case_fold(OnigCaseFoldType flag ARG_UNUSED, OnigApplyAllCaseFoldFunc f, void *arg, OnigEncoding enc ARG_UNUSED)
#define ENC_ALIAS(name, orig)
#define GBK_ISMB_FIRST(byte)
int onigenc_mb2_is_code_ctype(OnigEncoding enc, OnigCodePoint code, unsigned int ctype)
static UChar * gbk_left_adjust_char_head(const UChar *start, const UChar *s, const UChar *end, OnigEncoding enc)
static OnigCodePoint gbk_mbc_to_code(const UChar *p, const UChar *end, OnigEncoding enc)
#define enclen(enc, p, e)
static const signed char trans[][0x100]
static int gbk_mbc_case_fold(OnigCaseFoldType flag, const UChar **pp, const UChar *end, UChar *lower, OnigEncoding enc)
unsigned char buf[MIME_BUF_SIZE]
static int gbk_is_allowed_reverse_match(const UChar *s, const UChar *end ARG_UNUSED, OnigEncoding enc ARG_UNUSED)
#define ONIGENC_CONSTRUCT_MBCLEN_NEEDMORE(n)
int onigenc_is_mbc_newline_0x0a(const UChar *p, const UChar *end, OnigEncoding enc ARG_UNUSED)
#define GBK_ISMB_TRAIL(byte)
register unsigned int len
static const char GBK_CAN_BE_TRAIL_TABLE[256]
int onigenc_not_support_get_ctype_code_range(OnigCtype ctype, OnigCodePoint *sb_out, const OnigCodePoint *ranges[], OnigEncoding enc)
static int gbk_mbc_enc_len(const UChar *p, const UChar *e, OnigEncoding enc ARG_UNUSED)
int onigenc_ascii_get_case_fold_codes_by_str(OnigCaseFoldType flag ARG_UNUSED, const OnigUChar *p, const OnigUChar *end ARG_UNUSED, OnigCaseFoldCodeItem items[], OnigEncoding enc ARG_UNUSED)
static const int EncLen_GBK[]
static int gbk_code_to_mbc(OnigCodePoint code, UChar *buf, OnigEncoding enc)
OnigCodePoint onigenc_mbn_mbc_to_code(OnigEncoding enc, const UChar *p, const UChar *end)
static int gbk_is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncoding enc)
int onigenc_minimum_property_name_to_ctype(OnigEncoding enc, UChar *p, UChar *end)