Lines Matching refs:code
32 #define ONIGENC_IS_UNICODE_ISO_8859_1_CTYPE(code,ctype) \ argument
33 ((EncUNICODE_ISO_8859_1_CtypeTable[code] & CTYPE_TO_BIT(ctype)) != 0)
35 #define ONIGENC_IS_UNICODE_ISO_8859_1_BIT_CTYPE(code,cbit) \
36 ((EncUNICODE_ISO_8859_1_CtypeTable[code] & (cbit)) != 0)
8529 OnigCodePoint code[3]; member
8544 OnigCodePoint code[2]; member
10748 onigenc_unicode_is_code_ctype(OnigCodePoint code, unsigned int ctype) in onigenc_unicode_is_code_ctype() argument
10754 code < 256) { in onigenc_unicode_is_code_ctype()
10755 return ONIGENC_IS_UNICODE_ISO_8859_1_CTYPE(code, ctype); in onigenc_unicode_is_code_ctype()
10764 return onig_is_in_code_range((UChar* )CodeRanges[ctype], code); in onigenc_unicode_is_code_ctype()
10823 OnigCodePoint code; in onigenc_unicode_property_name_to_ctype() local
10828 code = ONIGENC_MBC_TO_CODE(enc, p, end); in onigenc_unicode_property_name_to_ctype()
10829 if (code >= 0x80) in onigenc_unicode_property_name_to_ctype()
10832 buf[len++] = (UChar )code; in onigenc_unicode_property_name_to_ctype()
10966 OnigCodePoint code; local
10972 code = ONIGENC_MBC_TO_CODE(enc, p, end);
10978 if (code == 0x0049) {
10981 else if (code == 0x0130) {
10987 if (onig_st_lookup(FoldTable, (st_data_t )code, (void* )&to) != 0) {
10989 return ONIGENC_CODE_TO_MBC(enc, to->code[0], fold);
10999 len = ONIGENC_CODE_TO_MBC(enc, to->code[i], fold);
11018 OnigCodePoint code; local
11027 code = p11->from;
11028 r = (*f)(p11->to.code[j], &code, 1, arg);
11031 code = p11->to.code[j];
11032 r = (*f)(p11->from, &code, 1, arg);
11036 r = (*f)(p11->to.code[j], (OnigCodePoint* )(&p11->to.code[k]), 1, arg);
11039 r = (*f)(p11->to.code[k], (OnigCodePoint* )(&p11->to.code[j]), 1, arg);
11047 code = 0x0131;
11048 r = (*f)(0x0049, &code, 1, arg);
11050 code = 0x0049;
11051 r = (*f)(0x0131, &code, 1, arg);
11054 code = 0x0130;
11055 r = (*f)(0x0069, &code, 1, arg);
11057 code = 0x0069;
11058 r = (*f)(0x0130, &code, 1, arg);
11068 code = p11->from;
11069 r = (*f)(p11->to.code[j], &code, 1, arg);
11072 code = p11->to.code[j];
11073 r = (*f)(p11->from, &code, 1, arg);
11077 r = (*f)(p11->to.code[j], (OnigCodePoint* )(&p11->to.code[k]),
11081 r = (*f)(p11->to.code[k], (OnigCodePoint* )(&p11->to.code[j]),
11095 r = (*f)(CaseUnfold_12[i].to.code[j],
11102 r = (*f)(CaseUnfold_12[i].to.code[j],
11103 (OnigCodePoint* )(&CaseUnfold_12[i].to.code[k]), 1, arg);
11116 r = (*f)(CaseUnfold_12_Locale[i].to.code[j],
11123 r = (*f)(CaseUnfold_12_Locale[i].to.code[j],
11124 (OnigCodePoint* )(&CaseUnfold_12_Locale[i].to.code[k]),
11137 r = (*f)(CaseUnfold_13[i].to.code[j],
11144 r = (*f)(CaseUnfold_13[i].to.code[j],
11145 (OnigCodePoint* )(&CaseUnfold_13[i].to.code[k]), 1, arg);
11161 OnigCodePoint code, codes[3]; local
11169 code = ONIGENC_MBC_TO_CODE(enc, p, end);
11174 if (code == 0x0049) {
11177 items[0].code[0] = 0x0131;
11180 else if (code == 0x0130) {
11183 items[0].code[0] = 0x0069;
11186 else if (code == 0x0131) {
11189 items[0].code[0] = 0x0049;
11192 else if (code == 0x0069) {
11195 items[0].code[0] = 0x0130;
11201 if (onig_st_lookup(FoldTable, (st_data_t )code, (void* )&to) != 0) {
11203 OnigCodePoint orig_code = code;
11207 items[0].code[0] = to->code[0];
11210 code = to->code[0];
11211 if (onig_st_lookup(Unfold1Table, (st_data_t )code, (void* )&to) != 0) {
11213 if (to->code[i] != orig_code) {
11216 items[n].code[0] = to->code[i];
11227 cs[fn][0] = to->code[fn];
11231 cs[fn][i+1] = z3->code[i];
11244 items[n].code[0] = cs[0][i];
11245 items[n].code[1] = cs[1][j];
11250 if (onig_st_lookup(Unfold2Table, (st_data_t )to->code,
11253 if (z2->code[i] == code) continue;
11257 items[n].code[0] = z2->code[i];
11268 items[n].code[0] = cs[0][i];
11269 items[n].code[1] = cs[1][j];
11270 items[n].code[2] = cs[2][k];
11276 if (onig_st_lookup(Unfold3Table, (st_data_t )to->code,
11279 if (z2->code[i] == code) continue;
11283 items[n].code[0] = z2->code[i];
11294 if (onig_st_lookup(Unfold1Table, (st_data_t )code, (void* )&to) != 0) {
11298 items[n].code[0] = to->code[i];
11310 codes[0] = code;
11311 code = ONIGENC_MBC_TO_CODE(enc, p, end);
11312 if (onig_st_lookup(FoldTable, (st_data_t )code, (void* )&to) != 0
11314 codes[1] = to->code[0];
11317 codes[1] = code;
11325 items[n].code[0] = z2->code[i];
11332 code = ONIGENC_MBC_TO_CODE(enc, p, end);
11333 if (onig_st_lookup(FoldTable, (st_data_t )code, (void* )&to) != 0
11335 codes[2] = to->code[0];
11338 codes[2] = code;
11347 items[n].code[0] = z2->code[i];