Lines Matching refs:enc

41 onig_initialize_encoding(OnigEncoding enc)  in onig_initialize_encoding()  argument
43 if (enc->init != 0 && (enc->is_initialized() == 0)) { in onig_initialize_encoding()
44 int r = (enc->init)(); in onig_initialize_encoding()
58 onigenc_set_default_encoding(OnigEncoding enc) in onigenc_set_default_encoding() argument
60 OnigEncDefaultCharEncoding = enc; in onigenc_set_default_encoding()
65 onigenc_get_right_adjust_char_head(OnigEncoding enc, const UChar* start, const UChar* s) in onigenc_get_right_adjust_char_head() argument
67 UChar* p = ONIGENC_LEFT_ADJUST_CHAR_HEAD(enc, start, s); in onigenc_get_right_adjust_char_head()
69 p += enclen(enc, p); in onigenc_get_right_adjust_char_head()
75 onigenc_get_right_adjust_char_head_with_prev(OnigEncoding enc, in onigenc_get_right_adjust_char_head_with_prev() argument
78 UChar* p = ONIGENC_LEFT_ADJUST_CHAR_HEAD(enc, start, s); in onigenc_get_right_adjust_char_head_with_prev()
82 p += enclen(enc, p); in onigenc_get_right_adjust_char_head_with_prev()
91 onigenc_get_prev_char_head(OnigEncoding enc, const UChar* start, const UChar* s) in onigenc_get_prev_char_head() argument
96 return ONIGENC_LEFT_ADJUST_CHAR_HEAD(enc, start, s - 1); in onigenc_get_prev_char_head()
100 onigenc_step_back(OnigEncoding enc, const UChar* start, const UChar* s, int n) in onigenc_step_back() argument
106 s = ONIGENC_LEFT_ADJUST_CHAR_HEAD(enc, start, s - 1); in onigenc_step_back()
113 onigenc_mbc_enc_len_end(OnigEncoding enc, const UChar* p, const UChar* end)
118 len = ONIGENC_MBC_ENC_LEN(enc, p);
126 onigenc_step(OnigEncoding enc, const UChar* p, const UChar* end, int n) in onigenc_step() argument
130 q += ONIGENC_MBC_ENC_LEN(enc, q); in onigenc_step()
136 onigenc_strlen(OnigEncoding enc, const UChar* p, const UChar* end) in onigenc_strlen() argument
142 q += ONIGENC_MBC_ENC_LEN(enc, q); in onigenc_strlen()
149 onigenc_strlen_null(OnigEncoding enc, const UChar* s) in onigenc_strlen_null() argument
157 int len = ONIGENC_MBC_MINLEN(enc); in onigenc_strlen_null()
168 p += ONIGENC_MBC_ENC_LEN(enc, p); in onigenc_strlen_null()
174 onigenc_str_bytelen_null(OnigEncoding enc, const UChar* s) in onigenc_str_bytelen_null() argument
182 int len = ONIGENC_MBC_MINLEN(enc); in onigenc_str_bytelen_null()
193 p += ONIGENC_MBC_ENC_LEN(enc, p); in onigenc_str_bytelen_null()
384 onigenc_get_left_adjust_char_head(OnigEncoding enc, const UChar* start, const UChar* s) in onigenc_get_left_adjust_char_head() argument
386 return ONIGENC_LEFT_ADJUST_CHAR_HEAD(enc, start, s); in onigenc_get_left_adjust_char_head()
674 onigenc_length_check_is_valid_mbc_string(OnigEncoding enc, in onigenc_length_check_is_valid_mbc_string() argument
678 p += enclen(enc, p); in onigenc_length_check_is_valid_mbc_string()
688 onigenc_is_valid_mbc_string(OnigEncoding enc, const UChar* s, const UChar* end) in onigenc_is_valid_mbc_string() argument
690 return ONIGENC_IS_VALID_MBC_STRING(enc, s, end); in onigenc_is_valid_mbc_string()
694 onigenc_mbn_mbc_to_code(OnigEncoding enc, const UChar* p, const UChar* end) in onigenc_mbn_mbc_to_code() argument
699 len = enclen(enc, p); in onigenc_mbn_mbc_to_code()
712 onigenc_mbn_mbc_case_fold(OnigEncoding enc, OnigCaseFoldType flag ARG_UNUSED, in onigenc_mbn_mbc_case_fold() argument
727 len = enclen(enc, p); in onigenc_mbn_mbc_case_fold()
738 onigenc_mbn_is_mbc_ambiguous(OnigEncoding enc, OnigCaseFoldType flag,
748 (*pp) += enclen(enc, p);
770 onigenc_mb2_code_to_mbc(OnigEncoding enc, OnigCodePoint code, UChar *buf) in onigenc_mb2_code_to_mbc() argument
780 if (enclen(enc, buf) != (p - buf)) 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
803 if (enclen(enc, buf) != (p - buf)) in onigenc_mb4_code_to_mbc()
810 onigenc_minimum_property_name_to_ctype(OnigEncoding enc, UChar* p, UChar* end) in onigenc_minimum_property_name_to_ctype() argument
833 len = onigenc_strlen(enc, p, end); in onigenc_minimum_property_name_to_ctype()
836 onigenc_with_ascii_strncmp(enc, p, end, pb->name, pb->len) == 0) in onigenc_minimum_property_name_to_ctype()
844 onigenc_mb2_is_code_ctype(OnigEncoding enc, OnigCodePoint code, in onigenc_mb2_is_code_ctype() argument
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
866 return (ONIGENC_CODE_TO_MBCLEN(enc, code) > 1 ? TRUE : FALSE); in onigenc_mb4_is_code_ctype()
874 onigenc_with_ascii_strncmp(OnigEncoding enc, const UChar* p, const UChar* end, in onigenc_with_ascii_strncmp() argument
882 c = (int )ONIGENC_MBC_TO_CODE(enc, p, end); in onigenc_with_ascii_strncmp()
887 p += enclen(enc, p); in onigenc_with_ascii_strncmp()