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)
142 onigenc_unicode_is_code_ctype(OnigCodePoint code, unsigned int ctype) in onigenc_unicode_is_code_ctype() argument
148 code < 256) { in onigenc_unicode_is_code_ctype()
149 return ONIGENC_IS_UNICODE_ISO_8859_1_CTYPE(code, ctype); in onigenc_unicode_is_code_ctype()
155 return onig_is_in_code_range((UChar* )UserDefinedPropertyRanges[index].ranges, code); in onigenc_unicode_is_code_ctype()
160 return onig_is_in_code_range((UChar* )CodeRanges[ctype], code); in onigenc_unicode_is_code_ctype()
194 OnigCodePoint code; in onigenc_unicode_property_name_to_ctype() local
201 code = ONIGENC_MBC_TO_CODE(enc, p, end); in onigenc_unicode_property_name_to_ctype()
202 if (code >= 0x80) in onigenc_unicode_property_name_to_ctype()
205 if (code != ' ' && code != '-' && code != '_') { in onigenc_unicode_property_name_to_ctype()
206 buf[len++] = (char )code; in onigenc_unicode_property_name_to_ctype()
252 OnigCodePoint code; in onigenc_unicode_mbc_case_fold() local
256 code = ONIGENC_MBC_TO_CODE(enc, p, end); in onigenc_unicode_mbc_case_fold()
262 if (code == 0x0130) { in onigenc_unicode_mbc_case_fold()
266 if (code == 0x0049) { in onigenc_unicode_mbc_case_fold()
273 buk = unicode_unfold_key(code); in onigenc_unicode_mbc_case_fold()
399 code = 0x0131; in onigenc_unicode_apply_all_case_fold()
400 r = (*f)(0x0049, &code, 1, arg); in onigenc_unicode_apply_all_case_fold()
402 code = 0x0049; in onigenc_unicode_apply_all_case_fold()
403 r = (*f)(0x0131, &code, 1, arg); in onigenc_unicode_apply_all_case_fold()
406 code = 0x0130; in onigenc_unicode_apply_all_case_fold()
407 r = (*f)(0x0069, &code, 1, arg); in onigenc_unicode_apply_all_case_fold()
409 code = 0x0069; in onigenc_unicode_apply_all_case_fold()
410 r = (*f)(0x0130, &code, 1, arg); in onigenc_unicode_apply_all_case_fold()
448 OnigCodePoint code, codes[3]; in onigenc_unicode_get_case_fold_codes_by_str() local
453 code = ONIGENC_MBC_TO_CODE(enc, p, end); in onigenc_unicode_get_case_fold_codes_by_str()
458 if (code == 0x0049) { in onigenc_unicode_get_case_fold_codes_by_str()
461 items[0].code[0] = 0x0131; in onigenc_unicode_get_case_fold_codes_by_str()
464 else if (code == 0x0130) { in onigenc_unicode_get_case_fold_codes_by_str()
467 items[0].code[0] = 0x0069; in onigenc_unicode_get_case_fold_codes_by_str()
470 else if (code == 0x0131) { in onigenc_unicode_get_case_fold_codes_by_str()
473 items[0].code[0] = 0x0049; in onigenc_unicode_get_case_fold_codes_by_str()
476 else if (code == 0x0069) { in onigenc_unicode_get_case_fold_codes_by_str()
479 items[0].code[0] = 0x0130; in onigenc_unicode_get_case_fold_codes_by_str()
485 buk = unicode_unfold_key(code); in onigenc_unicode_get_case_fold_codes_by_str()
491 items[0].code[0] = *FOLDS1_FOLD(buk->index); in onigenc_unicode_get_case_fold_codes_by_str()
497 if (unfold != code) { in onigenc_unicode_get_case_fold_codes_by_str()
500 items[n].code[0] = unfold; in onigenc_unicode_get_case_fold_codes_by_str()
504 code = items[0].code[0]; // for multi-code to unfold search. in onigenc_unicode_get_case_fold_codes_by_str()
514 if (unfold == code) continue; in onigenc_unicode_get_case_fold_codes_by_str()
518 items[n].code[0] = unfold; in onigenc_unicode_get_case_fold_codes_by_str()
541 items[n].code[0] = cs[0][i]; in onigenc_unicode_get_case_fold_codes_by_str()
542 items[n].code[1] = cs[1][j]; in onigenc_unicode_get_case_fold_codes_by_str()
551 if (unfold == code) continue; in onigenc_unicode_get_case_fold_codes_by_str()
555 items[n].code[0] = unfold; in onigenc_unicode_get_case_fold_codes_by_str()
579 items[n].code[0] = cs[0][i]; in onigenc_unicode_get_case_fold_codes_by_str()
580 items[n].code[1] = cs[1][j]; in onigenc_unicode_get_case_fold_codes_by_str()
581 items[n].code[2] = cs[2][k]; in onigenc_unicode_get_case_fold_codes_by_str()
593 int index = unicode_fold1_key(&code); in onigenc_unicode_get_case_fold_codes_by_str()
599 items[n].code[0] = FOLDS1_UNFOLDS(index)[i]; in onigenc_unicode_get_case_fold_codes_by_str()
613 codes[0] = code; in onigenc_unicode_get_case_fold_codes_by_str()
614 code = ONIGENC_MBC_TO_CODE(enc, p, end); in onigenc_unicode_get_case_fold_codes_by_str()
616 buk = unicode_unfold_key(code); in onigenc_unicode_get_case_fold_codes_by_str()
621 codes[1] = code; in onigenc_unicode_get_case_fold_codes_by_str()
632 items[n].code[0] = FOLDS2_UNFOLDS(index)[i]; in onigenc_unicode_get_case_fold_codes_by_str()
639 code = ONIGENC_MBC_TO_CODE(enc, p, end); in onigenc_unicode_get_case_fold_codes_by_str()
640 buk = unicode_unfold_key(code); in onigenc_unicode_get_case_fold_codes_by_str()
645 codes[2] = code; in onigenc_unicode_get_case_fold_codes_by_str()
656 items[n].code[0] = FOLDS3_UNFOLDS(index)[i]; in onigenc_unicode_get_case_fold_codes_by_str()