Lines Matching refs:code
397 OnigCodePoint code; in onigenc_ascii_apply_all_case_fold() local
403 code = OnigAsciiLowerMap[i].to; in onigenc_ascii_apply_all_case_fold()
404 r = (*f)(OnigAsciiLowerMap[i].from, &code, 1, arg); in onigenc_ascii_apply_all_case_fold()
407 code = OnigAsciiLowerMap[i].from; in onigenc_ascii_apply_all_case_fold()
408 r = (*f)(OnigAsciiLowerMap[i].to, &code, 1, arg); in onigenc_ascii_apply_all_case_fold()
423 items[0].code[0] = (OnigCodePoint )(*p + 0x20); in onigenc_ascii_get_case_fold_codes_by_str()
429 items[0].code[0] = (OnigCodePoint )(*p - 0x20); in onigenc_ascii_get_case_fold_codes_by_str()
451 OnigCodePoint code; in onigenc_apply_all_case_fold_with_map() local
458 code = map[i].to; in onigenc_apply_all_case_fold_with_map()
459 r = (*f)(map[i].from, &code, 1, arg); in onigenc_apply_all_case_fold_with_map()
462 code = map[i].from; in onigenc_apply_all_case_fold_with_map()
463 r = (*f)(map[i].to, &code, 1, arg); in onigenc_apply_all_case_fold_with_map()
482 items[0].code[0] = (OnigCodePoint )(*p + 0x20); in onigenc_get_case_fold_codes_by_str_with_map()
488 items[1].code[0] = (OnigCodePoint )0xdf; in onigenc_get_case_fold_codes_by_str_with_map()
497 items[0].code[0] = (OnigCodePoint )(*p - 0x20); in onigenc_get_case_fold_codes_by_str_with_map()
503 items[1].code[0] = (OnigCodePoint )0xdf; in onigenc_get_case_fold_codes_by_str_with_map()
512 items[0].code[0] = (OnigCodePoint )'s'; in onigenc_get_case_fold_codes_by_str_with_map()
513 items[0].code[1] = (OnigCodePoint )'s'; in onigenc_get_case_fold_codes_by_str_with_map()
517 items[1].code[0] = (OnigCodePoint )'S'; in onigenc_get_case_fold_codes_by_str_with_map()
518 items[1].code[1] = (OnigCodePoint )'S'; in onigenc_get_case_fold_codes_by_str_with_map()
522 items[2].code[0] = (OnigCodePoint )'s'; in onigenc_get_case_fold_codes_by_str_with_map()
523 items[2].code[1] = (OnigCodePoint )'S'; in onigenc_get_case_fold_codes_by_str_with_map()
527 items[3].code[0] = (OnigCodePoint )'S'; in onigenc_get_case_fold_codes_by_str_with_map()
528 items[3].code[1] = (OnigCodePoint )'s'; in onigenc_get_case_fold_codes_by_str_with_map()
539 items[0].code[0] = map[i].to; in onigenc_get_case_fold_codes_by_str_with_map()
545 items[0].code[0] = map[i].from; in onigenc_get_case_fold_codes_by_str_with_map()
608 onigenc_single_byte_code_to_mbclen(OnigCodePoint code ARG_UNUSED) in onigenc_single_byte_code_to_mbclen()
610 return (code < 0x100 ? 1 : ONIGERR_INVALID_CODE_POINT_VALUE); in onigenc_single_byte_code_to_mbclen()
614 onigenc_single_byte_code_to_mbc(OnigCodePoint code, UChar *buf) in onigenc_single_byte_code_to_mbc() argument
616 *buf = (UChar )(code & 0xff); in onigenc_single_byte_code_to_mbc()
702 onigenc_mb2_code_to_mbclen(OnigCodePoint code) in onigenc_mb2_code_to_mbclen() argument
704 if ((code & 0xff00) != 0) return 2; in onigenc_mb2_code_to_mbclen()
709 onigenc_mb4_code_to_mbclen(OnigCodePoint code) in onigenc_mb4_code_to_mbclen() argument
711 if ((code & 0xff000000) != 0) return 4; in onigenc_mb4_code_to_mbclen()
712 else if ((code & 0xff0000) != 0) return 3; in onigenc_mb4_code_to_mbclen()
713 else if ((code & 0xff00) != 0) return 2; in onigenc_mb4_code_to_mbclen()
718 onigenc_mb2_code_to_mbc(OnigEncoding enc, OnigCodePoint code, UChar *buf) in onigenc_mb2_code_to_mbc() argument
722 if ((code & 0xff00) != 0) { in onigenc_mb2_code_to_mbc()
723 *p++ = (UChar )((code >> 8) & 0xff); in onigenc_mb2_code_to_mbc()
725 *p++ = (UChar )(code & 0xff); in onigenc_mb2_code_to_mbc()
735 onigenc_mb4_code_to_mbc(OnigEncoding enc, OnigCodePoint code, UChar *buf) in onigenc_mb4_code_to_mbc() argument
739 if ((code & 0xff000000) != 0) { in onigenc_mb4_code_to_mbc()
740 *p++ = (UChar )((code >> 24) & 0xff); in onigenc_mb4_code_to_mbc()
742 if ((code & 0xff0000) != 0 || p != buf) { in onigenc_mb4_code_to_mbc()
743 *p++ = (UChar )((code >> 16) & 0xff); in onigenc_mb4_code_to_mbc()
745 if ((code & 0xff00) != 0 || p != buf) { in onigenc_mb4_code_to_mbc()
746 *p++ = (UChar )((code >> 8) & 0xff); in onigenc_mb4_code_to_mbc()
748 *p++ = (UChar )(code & 0xff); in onigenc_mb4_code_to_mbc()
792 onigenc_mb2_is_code_ctype(OnigEncoding enc, OnigCodePoint code, in onigenc_mb2_is_code_ctype() argument
795 if (code < 128) in onigenc_mb2_is_code_ctype()
796 return ONIGENC_IS_ASCII_CODE_CTYPE(code, ctype); in onigenc_mb2_is_code_ctype()
799 return (ONIGENC_CODE_TO_MBCLEN(enc, code) > 1 ? TRUE : FALSE); in onigenc_mb2_is_code_ctype()
807 onigenc_mb4_is_code_ctype(OnigEncoding enc, OnigCodePoint code, in onigenc_mb4_is_code_ctype() argument
810 if (code < 128) in onigenc_mb4_is_code_ctype()
811 return ONIGENC_IS_ASCII_CODE_CTYPE(code, ctype); in onigenc_mb4_is_code_ctype()
814 return (ONIGENC_CODE_TO_MBCLEN(enc, code) > 1 ? TRUE : FALSE); in onigenc_mb4_is_code_ctype()