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,
A,
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,
F,
F, F
120 int firstbyte = *p++;
122 s =
trans[0][firstbyte];
140 else if (code <= 0xffff) {
153 len =
enclen(enc, p, end);
156 if (len == 1)
return n;
158 for (i = 1; i <
len; i++) {
171 if ((code & 0xff00) != 0) *p++ = (
UChar )(((code >> 8) & 0xff));
172 *p++ = (
UChar )(code & 0xff);
176 return REGERR_INVALID_CODE_POINT_VALUE;
178 return (
int)(p -
buf);
197 for (i = 0; i <
len; i++) {
210 return onigenc_mbn_is_mbc_ambiguous(enc, flag, pp, end);
237 if (s <= start)
return (
UChar* )s;
248 len =
enclen(enc, p, end);
249 if (p + len > s)
return (
UChar* )
p;
251 return (
UChar* )(p + ((s -
p) & ~1));
303 for (; p < end; p++) {
355 *ranges = PropertyList[ctype];
unsigned int OnigCodePoint
static const OnigCodePoint CR_Katakana[]
#define ONIGERR_TOO_BIG_WIDE_CHAR_VALUE
int onig_st_lookup_strend(hash_table_type *table, const UChar *str_key, const UChar *end_key, hash_data_type *value)
#define ONIGENC_IS_MBC_ASCII(p)
static int mbc_case_fold(OnigCaseFoldType flag, const UChar **pp, const UChar *end, UChar *lower, OnigEncoding enc)
unsigned int OnigCaseFoldType
static const int EncLen_SJIS[]
int onig_is_in_code_range(const UChar *p, OnigCodePoint code)
static hash_table_type * PropertyNameTable
static int PropertyListNum
int onigenc_ascii_apply_all_case_fold(OnigCaseFoldType flag ARG_UNUSED, OnigApplyAllCaseFoldFunc f, void *arg, OnigEncoding enc ARG_UNUSED)
#define SJIS_ISMB_FIRST(byte)
#define ENC_ALIAS(name, orig)
#define ONIGENC_IS_ASCII_CODE_CTYPE(code, ctype)
static int PropertyInited
static OnigCodePoint mbc_to_code(const UChar *p, const UChar *end, OnigEncoding enc)
#define enclen(enc, p, e)
static const OnigCodePoint ** PropertyList
#define PROPERTY_LIST_ADD_PROP(Name, CR)
#define ALLOCA_N(type, n)
static int code_to_mbclen(OnigCodePoint code, OnigEncoding enc ARG_UNUSED)
static int get_ctype_code_range(OnigCtype ctype, OnigCodePoint *sb_out, const OnigCodePoint *ranges[], OnigEncoding enc ARG_UNUSED)
#define ONIGENC_CONSTRUCT_MBCLEN_NEEDMORE(n)
static const OnigCodePoint CR_Hiragana[]
int onigenc_is_mbc_newline_0x0a(const UChar *p, const UChar *end, OnigEncoding enc ARG_UNUSED)
static int init_property_list(void)
unsigned char buf[MIME_BUF_SIZE]
#define ONIG_NO_SUPPORT_CONFIG
#define ONIGENC_CONSTRUCT_MBCLEN_CHARFOUND(n)
static const char SJIS_CAN_BE_TRAIL_TABLE[256]
register unsigned int len
static const signed char trans[][0x100]
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 PropertyListSize
static UChar * left_adjust_char_head(const UChar *start, const UChar *s, const UChar *end, OnigEncoding enc)
#define ONIGENC_MAX_STD_CTYPE
#define ONIGENC_CONSTRUCT_MBCLEN_INVALID()
#define ENC_REPLICATE(name, orig)
#define SJIS_ISMB_TRAIL(byte)
static int is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncoding enc)
static int mbc_enc_len(const UChar *p, const UChar *e, OnigEncoding enc ARG_UNUSED)
OnigEncodingDefine(shift_jis, Shift_JIS)
static int code_to_mbc(OnigCodePoint code, UChar *buf, OnigEncoding enc)
#define ONIGENC_ASCII_CODE_TO_LOWER_CASE(c)
unsigned long hash_data_type
#define PROPERTY_LIST_INIT_CHECK
static int property_name_to_ctype(OnigEncoding enc, UChar *p, UChar *end)
#define ONIGERR_INVALID_CODE_POINT_VALUE
static int is_allowed_reverse_match(const UChar *s, const UChar *end, OnigEncoding enc ARG_UNUSED)
#define CTYPE_IS_WORD_GRAPH_PRINT(ctype)
int onigenc_minimum_property_name_to_ctype(OnigEncoding enc, UChar *p, UChar *end)