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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 CP949_ISMB_TRAIL(byte)
static const signed char trans[][0x100]
static OnigCodePoint cp949_mbc_to_code(const UChar *p, const UChar *end, OnigEncoding enc)
static int cp949_mbc_case_fold(OnigCaseFoldType flag, const UChar **pp, const UChar *end, UChar *lower, OnigEncoding enc)
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)
static int cp949_mbc_enc_len(const UChar *p, const UChar *e, 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)
static int cp949_code_to_mbc(OnigCodePoint code, UChar *buf, OnigEncoding enc)
OnigEncodingDefine(cp949, CP949)
int onigenc_mb2_is_code_ctype(OnigEncoding enc, OnigCodePoint code, unsigned int ctype)
static int cp949_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)
unsigned char buf[MIME_BUF_SIZE]
static UChar * cp949_left_adjust_char_head(const UChar *start, const UChar *s, const UChar *end, OnigEncoding enc)
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 int cp949_is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncoding enc)
#define enclen(enc, p, e)
static const int EncLen_CP949[]
#define CP949_ISMB_FIRST(byte)
OnigCodePoint onigenc_mbn_mbc_to_code(OnigEncoding enc, const UChar *p, const UChar *end)
static const char CP949_CAN_BE_TRAIL_TABLE[256]
int onigenc_minimum_property_name_to_ctype(OnigEncoding enc, UChar *p, UChar *end)