Lines Matching refs:code
509 OnigCodePoint code; in onigenc_ascii_apply_all_case_fold() local
515 code = OnigAsciiLowerMap[i].to; in onigenc_ascii_apply_all_case_fold()
516 r = (*f)(OnigAsciiLowerMap[i].from, &code, 1, arg); in onigenc_ascii_apply_all_case_fold()
519 code = OnigAsciiLowerMap[i].from; in onigenc_ascii_apply_all_case_fold()
520 r = (*f)(OnigAsciiLowerMap[i].to, &code, 1, arg); in onigenc_ascii_apply_all_case_fold()
535 items[0].code[0] = (OnigCodePoint )(*p + 0x20); in onigenc_ascii_get_case_fold_codes_by_str()
541 items[0].code[0] = (OnigCodePoint )(*p - 0x20); in onigenc_ascii_get_case_fold_codes_by_str()
563 OnigCodePoint code; in onigenc_apply_all_case_fold_with_map() local
570 code = map[i].to; in onigenc_apply_all_case_fold_with_map()
571 r = (*f)(map[i].from, &code, 1, arg); in onigenc_apply_all_case_fold_with_map()
574 code = map[i].from; in onigenc_apply_all_case_fold_with_map()
575 r = (*f)(map[i].to, &code, 1, arg); in onigenc_apply_all_case_fold_with_map()
594 items[0].code[0] = (OnigCodePoint )(*p + 0x20); in onigenc_get_case_fold_codes_by_str_with_map()
600 items[1].code[0] = (OnigCodePoint )0xdf; in onigenc_get_case_fold_codes_by_str_with_map()
609 items[0].code[0] = (OnigCodePoint )(*p - 0x20); in onigenc_get_case_fold_codes_by_str_with_map()
615 items[1].code[0] = (OnigCodePoint )0xdf; in onigenc_get_case_fold_codes_by_str_with_map()
624 items[0].code[0] = (OnigCodePoint )'s'; in onigenc_get_case_fold_codes_by_str_with_map()
625 items[0].code[1] = (OnigCodePoint )'s'; in onigenc_get_case_fold_codes_by_str_with_map()
629 items[1].code[0] = (OnigCodePoint )'S'; in onigenc_get_case_fold_codes_by_str_with_map()
630 items[1].code[1] = (OnigCodePoint )'S'; in onigenc_get_case_fold_codes_by_str_with_map()
634 items[2].code[0] = (OnigCodePoint )'s'; in onigenc_get_case_fold_codes_by_str_with_map()
635 items[2].code[1] = (OnigCodePoint )'S'; in onigenc_get_case_fold_codes_by_str_with_map()
639 items[3].code[0] = (OnigCodePoint )'S'; in onigenc_get_case_fold_codes_by_str_with_map()
640 items[3].code[1] = (OnigCodePoint )'s'; in onigenc_get_case_fold_codes_by_str_with_map()
651 items[0].code[0] = map[i].to; in onigenc_get_case_fold_codes_by_str_with_map()
657 items[0].code[0] = map[i].from; in onigenc_get_case_fold_codes_by_str_with_map()
708 onigenc_single_byte_code_to_mbclen(OnigCodePoint code ARG_UNUSED) in onigenc_single_byte_code_to_mbclen()
710 return (code < 0x100 ? 1 : ONIGERR_INVALID_CODE_POINT_VALUE); in onigenc_single_byte_code_to_mbclen()
714 onigenc_single_byte_code_to_mbc(OnigCodePoint code, UChar *buf) in onigenc_single_byte_code_to_mbc() argument
716 *buf = (UChar )(code & 0xff); in onigenc_single_byte_code_to_mbc()
812 onigenc_mb2_code_to_mbc(OnigEncoding enc, OnigCodePoint code, UChar *buf) in onigenc_mb2_code_to_mbc() argument
816 if ((code & 0xff00) != 0) { in onigenc_mb2_code_to_mbc()
817 *p++ = (UChar )((code >> 8) & 0xff); in onigenc_mb2_code_to_mbc()
819 *p++ = (UChar )(code & 0xff); in onigenc_mb2_code_to_mbc()
829 onigenc_mb4_code_to_mbc(OnigEncoding enc, OnigCodePoint code, UChar *buf) in onigenc_mb4_code_to_mbc() argument
833 if ((code & 0xff000000) != 0) { in onigenc_mb4_code_to_mbc()
834 *p++ = (UChar )((code >> 24) & 0xff); in onigenc_mb4_code_to_mbc()
836 if ((code & 0xff0000) != 0 || p != buf) { in onigenc_mb4_code_to_mbc()
837 *p++ = (UChar )((code >> 16) & 0xff); in onigenc_mb4_code_to_mbc()
839 if ((code & 0xff00) != 0 || p != buf) { in onigenc_mb4_code_to_mbc()
840 *p++ = (UChar )((code >> 8) & 0xff); in onigenc_mb4_code_to_mbc()
842 *p++ = (UChar )(code & 0xff); in onigenc_mb4_code_to_mbc()
888 OnigCodePoint code = ONIGENC_MBC_TO_CODE(enc, s, end); in onigenc_is_mbc_word_ascii() local
890 if (code > 127) return 0; in onigenc_is_mbc_word_ascii()
892 return ONIGENC_IS_ASCII_CODE_WORD(code); in onigenc_is_mbc_word_ascii()
896 onigenc_mb2_is_code_ctype(OnigEncoding enc, OnigCodePoint code, in onigenc_mb2_is_code_ctype() argument
899 if (code < 128) in onigenc_mb2_is_code_ctype()
900 return ONIGENC_IS_ASCII_CODE_CTYPE(code, ctype); in onigenc_mb2_is_code_ctype()
903 return (ONIGENC_CODE_TO_MBCLEN(enc, code) > 1 ? TRUE : FALSE); in onigenc_mb2_is_code_ctype()
911 onigenc_mb4_is_code_ctype(OnigEncoding enc, OnigCodePoint code, in onigenc_mb4_is_code_ctype() argument
914 if (code < 128) in onigenc_mb4_is_code_ctype()
915 return ONIGENC_IS_ASCII_CODE_CTYPE(code, ctype); in onigenc_mb4_is_code_ctype()
918 return (ONIGENC_CODE_TO_MBCLEN(enc, code) > 1 ? TRUE : FALSE); in onigenc_mb4_is_code_ctype()
962 OnigCodePoint code; in onig_codes_byte_at() local
966 code = codes[index]; in onig_codes_byte_at()
968 return ((code >> ((2 - b) * 8)) & 0xff); in onig_codes_byte_at()