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,
F,
F,
F,
F,
F,
83 F,
F,
F,
F,
F,
F,
F,
F,
F,
F,
F,
F,
F,
F,
F,
F,
84 F,
A,
A,
A,
A,
A,
A,
A,
A,
A,
A,
A,
A,
A,
A,
A,
85 A,
A,
A,
A,
A,
A,
A,
A,
A,
A,
A,
A,
A,
A,
A,
A,
86 A,
A,
A,
A,
A,
A,
A,
A,
A,
A,
A,
A,
A,
A,
A,
A,
87 A,
A,
A,
A,
A,
A,
A,
A,
A,
A,
A,
A,
A,
A,
A,
A,
88 A,
A,
A,
A,
A,
A,
A,
A,
A,
A,
A,
A,
A,
A,
A,
A,
89 A,
A,
A,
A,
A,
A,
A,
A,
A,
A,
A,
A,
A,
A,
A, F
101 return s == ACCEPT ? ONIGENC_CONSTRUCT_MBCLEN_CHARFOUND(n) : \
102 ONIGENC_CONSTRUCT_MBCLEN_INVALID()
135 return onigenc_mbn_is_mbc_ambiguous(enc, flag, pp, end);
145 #define euckr_islead(c) ((c) < 0xa1 || (c) == 0xff)
156 if (s <= start)
return (
UChar* )s;
160 len =
enclen(enc, p, end);
161 if (p + len > s)
return (
UChar* )
p;
163 return (
UChar* )(p + ((s -
p) & ~1));
170 if (c <= 0x7e)
return TRUE;
unsigned int OnigCodePoint
unsigned int OnigCaseFoldType
static int euckr_mbc_enc_len(const UChar *p, const UChar *e, OnigEncoding enc ARG_UNUSED)
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)
static int euckr_is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncoding enc)
static const signed char trans[][0x100]
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)
int onigenc_mb2_is_code_ctype(OnigEncoding enc, OnigCodePoint code, unsigned int ctype)
static int euckr_code_to_mbc(OnigCodePoint code, UChar *buf, OnigEncoding enc)
static OnigCodePoint euckr_mbc_to_code(const UChar *p, const UChar *end, OnigEncoding enc)
#define ONIGENC_CONSTRUCT_MBCLEN_NEEDMORE(n)
static int euckr_mbc_case_fold(OnigCaseFoldType flag, const UChar **pp, const UChar *end, UChar *lower, OnigEncoding enc)
int onigenc_is_mbc_newline_0x0a(const UChar *p, const UChar *end, OnigEncoding enc ARG_UNUSED)
unsigned char buf[MIME_BUF_SIZE]
static int euckr_is_allowed_reverse_match(const UChar *s, const UChar *end ARG_UNUSED, OnigEncoding enc ARG_UNUSED)
register unsigned int len
int onigenc_not_support_get_ctype_code_range(OnigCtype ctype, OnigCodePoint *sb_out, const OnigCodePoint *ranges[], OnigEncoding enc)
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 UChar * euckr_left_adjust_char_head(const UChar *start, const UChar *s, const UChar *end, OnigEncoding enc)
#define enclen(enc, p, e)
static const int EncLen_EUCKR[]
OnigCodePoint onigenc_mbn_mbc_to_code(OnigEncoding enc, const UChar *p, const UChar *end)
OnigEncodingDefine(euc_kr, EUC_KR)
int onigenc_minimum_property_name_to_ctype(OnigEncoding enc, UChar *p, UChar *end)