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);
10979 if (code == 0x0049) {
10982 else if (code == 0x0130) {
10988 if (onig_st_lookup(FoldTable, (st_data_t )code, (void* )&to) != 0) {
10990 return ONIGENC_CODE_TO_MBC(enc, to->code[0], fold);
11000 len = ONIGENC_CODE_TO_MBC(enc, to->code[i], fold);
11019 OnigCodePoint code; local
11028 code = p11->from;
11029 r = (*f)(p11->to.code[j], &code, 1, arg);
11032 code = p11->to.code[j];
11033 r = (*f)(p11->from, &code, 1, arg);
11037 r = (*f)(p11->to.code[j], (OnigCodePoint* )(&p11->to.code[k]), 1, arg);
11040 r = (*f)(p11->to.code[k], (OnigCodePoint* )(&p11->to.code[j]), 1, arg);
11048 code = 0x0131;
11049 r = (*f)(0x0049, &code, 1, arg);
11051 code = 0x0049;
11052 r = (*f)(0x0131, &code, 1, arg);
11055 code = 0x0130;
11056 r = (*f)(0x0069, &code, 1, arg);
11058 code = 0x0069;
11059 r = (*f)(0x0130, &code, 1, arg);
11069 code = p11->from;
11070 r = (*f)(p11->to.code[j], &code, 1, arg);
11073 code = p11->to.code[j];
11074 r = (*f)(p11->from, &code, 1, arg);
11078 r = (*f)(p11->to.code[j], (OnigCodePoint* )(&p11->to.code[k]),
11082 r = (*f)(p11->to.code[k], (OnigCodePoint* )(&p11->to.code[j]),
11096 r = (*f)(CaseUnfold_12[i].to.code[j],
11103 r = (*f)(CaseUnfold_12[i].to.code[j],
11104 (OnigCodePoint* )(&CaseUnfold_12[i].to.code[k]), 1, arg);
11117 r = (*f)(CaseUnfold_12_Locale[i].to.code[j],
11124 r = (*f)(CaseUnfold_12_Locale[i].to.code[j],
11125 (OnigCodePoint* )(&CaseUnfold_12_Locale[i].to.code[k]),
11138 r = (*f)(CaseUnfold_13[i].to.code[j],
11145 r = (*f)(CaseUnfold_13[i].to.code[j],
11146 (OnigCodePoint* )(&CaseUnfold_13[i].to.code[k]), 1, arg);
11162 OnigCodePoint code, codes[3]; local
11170 code = ONIGENC_MBC_TO_CODE(enc, p, end);
11175 if (code == 0x0049) {
11178 items[0].code[0] = 0x0131;
11181 else if (code == 0x0130) {
11184 items[0].code[0] = 0x0069;
11187 else if (code == 0x0131) {
11190 items[0].code[0] = 0x0049;
11193 else if (code == 0x0069) {
11196 items[0].code[0] = 0x0130;
11202 if (onig_st_lookup(FoldTable, (st_data_t )code, (void* )&to) != 0) {
11204 OnigCodePoint orig_code = code;
11208 items[0].code[0] = to->code[0];
11211 code = to->code[0];
11212 if (onig_st_lookup(Unfold1Table, (st_data_t )code, (void* )&to) != 0) {
11214 if (to->code[i] != orig_code) {
11217 items[n].code[0] = to->code[i];
11228 cs[fn][0] = to->code[fn];
11232 cs[fn][i+1] = z3->code[i];
11245 items[n].code[0] = cs[0][i];
11246 items[n].code[1] = cs[1][j];
11251 if (onig_st_lookup(Unfold2Table, (st_data_t )to->code,
11254 if (z2->code[i] == code) continue;
11258 items[n].code[0] = z2->code[i];
11269 items[n].code[0] = cs[0][i];
11270 items[n].code[1] = cs[1][j];
11271 items[n].code[2] = cs[2][k];
11277 if (onig_st_lookup(Unfold3Table, (st_data_t )to->code,
11280 if (z2->code[i] == code) continue;
11284 items[n].code[0] = z2->code[i];
11295 if (onig_st_lookup(Unfold1Table, (st_data_t )code, (void* )&to) != 0) {
11299 items[n].code[0] = to->code[i];
11311 codes[0] = code;
11312 code = ONIGENC_MBC_TO_CODE(enc, p, end);
11313 if (onig_st_lookup(FoldTable, (st_data_t )code, (void* )&to) != 0
11315 codes[1] = to->code[0];
11318 codes[1] = code;
11326 items[n].code[0] = z2->code[i];
11333 code = ONIGENC_MBC_TO_CODE(enc, p, end);
11334 if (onig_st_lookup(FoldTable, (st_data_t )code, (void* )&to) != 0
11336 codes[2] = to->code[0];
11339 codes[2] = code;
11348 items[n].code[0] = z2->code[i];