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()
10984 OnigCodePoint code; local
10990 code = ONIGENC_MBC_TO_CODE(enc, p, end);
10996 if (code == 0x0049) {
10999 else if (code == 0x0130) {
11005 if (onig_st_lookup(FoldTable, (st_data_t )code, (void* )&to) != 0) {
11007 return ONIGENC_CODE_TO_MBC(enc, to->code[0], fold);
11017 len = ONIGENC_CODE_TO_MBC(enc, to->code[i], fold);
11036 OnigCodePoint code; local
11045 code = p11->from;
11046 r = (*f)(p11->to.code[j], &code, 1, arg);
11049 code = p11->to.code[j];
11050 r = (*f)(p11->from, &code, 1, arg);
11054 r = (*f)(p11->to.code[j], (OnigCodePoint* )(&p11->to.code[k]), 1, arg);
11057 r = (*f)(p11->to.code[k], (OnigCodePoint* )(&p11->to.code[j]), 1, arg);
11065 code = 0x0131;
11066 r = (*f)(0x0049, &code, 1, arg);
11068 code = 0x0049;
11069 r = (*f)(0x0131, &code, 1, arg);
11072 code = 0x0130;
11073 r = (*f)(0x0069, &code, 1, arg);
11075 code = 0x0069;
11076 r = (*f)(0x0130, &code, 1, arg);
11086 code = p11->from;
11087 r = (*f)(p11->to.code[j], &code, 1, arg);
11090 code = p11->to.code[j];
11091 r = (*f)(p11->from, &code, 1, arg);
11095 r = (*f)(p11->to.code[j], (OnigCodePoint* )(&p11->to.code[k]),
11099 r = (*f)(p11->to.code[k], (OnigCodePoint* )(&p11->to.code[j]),
11113 r = (*f)(CaseUnfold_12[i].to.code[j],
11120 r = (*f)(CaseUnfold_12[i].to.code[j],
11121 (OnigCodePoint* )(&CaseUnfold_12[i].to.code[k]), 1, arg);
11134 r = (*f)(CaseUnfold_12_Locale[i].to.code[j],
11141 r = (*f)(CaseUnfold_12_Locale[i].to.code[j],
11142 (OnigCodePoint* )(&CaseUnfold_12_Locale[i].to.code[k]),
11155 r = (*f)(CaseUnfold_13[i].to.code[j],
11162 r = (*f)(CaseUnfold_13[i].to.code[j],
11163 (OnigCodePoint* )(&CaseUnfold_13[i].to.code[k]), 1, arg);
11179 OnigCodePoint code, codes[3]; local
11187 code = ONIGENC_MBC_TO_CODE(enc, p, end);
11192 if (code == 0x0049) {
11195 items[0].code[0] = 0x0131;
11198 else if (code == 0x0130) {
11201 items[0].code[0] = 0x0069;
11204 else if (code == 0x0131) {
11207 items[0].code[0] = 0x0049;
11210 else if (code == 0x0069) {
11213 items[0].code[0] = 0x0130;
11219 if (onig_st_lookup(FoldTable, (st_data_t )code, (void* )&to) != 0) {
11221 OnigCodePoint orig_code = code;
11225 items[0].code[0] = to->code[0];
11228 code = to->code[0];
11229 if (onig_st_lookup(Unfold1Table, (st_data_t )code, (void* )&to) != 0) {
11231 if (to->code[i] != orig_code) {
11234 items[n].code[0] = to->code[i];
11245 cs[fn][0] = to->code[fn];
11249 cs[fn][i+1] = z3->code[i];
11262 items[n].code[0] = cs[0][i];
11263 items[n].code[1] = cs[1][j];
11268 if (onig_st_lookup(Unfold2Table, (st_data_t )to->code,
11271 if (z2->code[i] == code) continue;
11275 items[n].code[0] = z2->code[i];
11286 items[n].code[0] = cs[0][i];
11287 items[n].code[1] = cs[1][j];
11288 items[n].code[2] = cs[2][k];
11294 if (onig_st_lookup(Unfold3Table, (st_data_t )to->code,
11297 if (z2->code[i] == code) continue;
11301 items[n].code[0] = z2->code[i];
11312 if (onig_st_lookup(Unfold1Table, (st_data_t )code, (void* )&to) != 0) {
11316 items[n].code[0] = to->code[i];
11328 codes[0] = code;
11329 code = ONIGENC_MBC_TO_CODE(enc, p, end);
11330 if (onig_st_lookup(FoldTable, (st_data_t )code, (void* )&to) != 0
11332 codes[1] = to->code[0];
11335 codes[1] = code;
11343 items[n].code[0] = z2->code[i];
11350 code = ONIGENC_MBC_TO_CODE(enc, p, end);
11351 if (onig_st_lookup(FoldTable, (st_data_t )code, (void* )&to) != 0
11353 codes[2] = to->code[0];
11356 codes[2] = code;
11365 items[n].code[0] = z2->code[i];