Lines Matching refs:code
422 OnigCodePoint code; in onigenc_ascii_apply_all_case_fold() local
428 code = OnigAsciiLowerMap[i].to; in onigenc_ascii_apply_all_case_fold()
429 r = (*f)(OnigAsciiLowerMap[i].from, &code, 1, arg); in onigenc_ascii_apply_all_case_fold()
432 code = OnigAsciiLowerMap[i].from; in onigenc_ascii_apply_all_case_fold()
433 r = (*f)(OnigAsciiLowerMap[i].to, &code, 1, arg); in onigenc_ascii_apply_all_case_fold()
448 items[0].code[0] = (OnigCodePoint )(*p + 0x20); in onigenc_ascii_get_case_fold_codes_by_str()
454 items[0].code[0] = (OnigCodePoint )(*p - 0x20); in onigenc_ascii_get_case_fold_codes_by_str()
476 OnigCodePoint code; in onigenc_apply_all_case_fold_with_map() local
483 code = map[i].to; in onigenc_apply_all_case_fold_with_map()
484 r = (*f)(map[i].from, &code, 1, arg); in onigenc_apply_all_case_fold_with_map()
487 code = map[i].from; in onigenc_apply_all_case_fold_with_map()
488 r = (*f)(map[i].to, &code, 1, arg); in onigenc_apply_all_case_fold_with_map()
507 items[0].code[0] = (OnigCodePoint )(*p + 0x20); in onigenc_get_case_fold_codes_by_str_with_map()
513 items[1].code[0] = (OnigCodePoint )0xdf; in onigenc_get_case_fold_codes_by_str_with_map()
522 items[0].code[0] = (OnigCodePoint )(*p - 0x20); in onigenc_get_case_fold_codes_by_str_with_map()
528 items[1].code[0] = (OnigCodePoint )0xdf; in onigenc_get_case_fold_codes_by_str_with_map()
537 items[0].code[0] = (OnigCodePoint )'s'; in onigenc_get_case_fold_codes_by_str_with_map()
538 items[0].code[1] = (OnigCodePoint )'s'; in onigenc_get_case_fold_codes_by_str_with_map()
542 items[1].code[0] = (OnigCodePoint )'S'; in onigenc_get_case_fold_codes_by_str_with_map()
543 items[1].code[1] = (OnigCodePoint )'S'; in onigenc_get_case_fold_codes_by_str_with_map()
547 items[2].code[0] = (OnigCodePoint )'s'; in onigenc_get_case_fold_codes_by_str_with_map()
548 items[2].code[1] = (OnigCodePoint )'S'; in onigenc_get_case_fold_codes_by_str_with_map()
552 items[3].code[0] = (OnigCodePoint )'S'; in onigenc_get_case_fold_codes_by_str_with_map()
553 items[3].code[1] = (OnigCodePoint )'s'; in onigenc_get_case_fold_codes_by_str_with_map()
564 items[0].code[0] = map[i].to; in onigenc_get_case_fold_codes_by_str_with_map()
570 items[0].code[0] = map[i].from; in onigenc_get_case_fold_codes_by_str_with_map()
633 onigenc_single_byte_code_to_mbclen(OnigCodePoint code ARG_UNUSED) in onigenc_single_byte_code_to_mbclen()
635 return (code < 0x100 ? 1 : ONIGERR_INVALID_CODE_POINT_VALUE); in onigenc_single_byte_code_to_mbclen()
639 onigenc_single_byte_code_to_mbc(OnigCodePoint code, UChar *buf) in onigenc_single_byte_code_to_mbc() argument
641 *buf = (UChar )(code & 0xff); in onigenc_single_byte_code_to_mbc()
754 onigenc_mb2_code_to_mbclen(OnigCodePoint code) in onigenc_mb2_code_to_mbclen() argument
756 if ((code & 0xff00) != 0) return 2; in onigenc_mb2_code_to_mbclen()
761 onigenc_mb4_code_to_mbclen(OnigCodePoint code) in onigenc_mb4_code_to_mbclen() argument
763 if ((code & 0xff000000) != 0) return 4; in onigenc_mb4_code_to_mbclen()
764 else if ((code & 0xff0000) != 0) return 3; in onigenc_mb4_code_to_mbclen()
765 else if ((code & 0xff00) != 0) return 2; in onigenc_mb4_code_to_mbclen()
770 onigenc_mb2_code_to_mbc(OnigEncoding enc, OnigCodePoint code, UChar *buf) in onigenc_mb2_code_to_mbc() argument
774 if ((code & 0xff00) != 0) { in onigenc_mb2_code_to_mbc()
775 *p++ = (UChar )((code >> 8) & 0xff); in onigenc_mb2_code_to_mbc()
777 *p++ = (UChar )(code & 0xff); in onigenc_mb2_code_to_mbc()
787 onigenc_mb4_code_to_mbc(OnigEncoding enc, OnigCodePoint code, UChar *buf) in onigenc_mb4_code_to_mbc() argument
791 if ((code & 0xff000000) != 0) { in onigenc_mb4_code_to_mbc()
792 *p++ = (UChar )((code >> 24) & 0xff); in onigenc_mb4_code_to_mbc()
794 if ((code & 0xff0000) != 0 || p != buf) { in onigenc_mb4_code_to_mbc()
795 *p++ = (UChar )((code >> 16) & 0xff); in onigenc_mb4_code_to_mbc()
797 if ((code & 0xff00) != 0 || p != buf) { in onigenc_mb4_code_to_mbc()
798 *p++ = (UChar )((code >> 8) & 0xff); in onigenc_mb4_code_to_mbc()
800 *p++ = (UChar )(code & 0xff); in onigenc_mb4_code_to_mbc()
844 onigenc_mb2_is_code_ctype(OnigEncoding enc, OnigCodePoint code, in onigenc_mb2_is_code_ctype() argument
847 if (code < 128) in onigenc_mb2_is_code_ctype()
848 return ONIGENC_IS_ASCII_CODE_CTYPE(code, ctype); in onigenc_mb2_is_code_ctype()
851 return (ONIGENC_CODE_TO_MBCLEN(enc, code) > 1 ? TRUE : FALSE); in onigenc_mb2_is_code_ctype()
859 onigenc_mb4_is_code_ctype(OnigEncoding enc, OnigCodePoint code, in onigenc_mb4_is_code_ctype() argument
862 if (code < 128) in onigenc_mb4_is_code_ctype()
863 return ONIGENC_IS_ASCII_CODE_CTYPE(code, ctype); in onigenc_mb4_is_code_ctype()
866 return (ONIGENC_CODE_TO_MBCLEN(enc, code) > 1 ? TRUE : FALSE); in onigenc_mb4_is_code_ctype()
910 OnigCodePoint code; in onig_codes_byte_at() local
914 code = codes[index]; in onig_codes_byte_at()
916 return ((code >> ((2 - b) * 8)) & 0xff); in onig_codes_byte_at()