4 us_ascii_mbc_enc_len(const UChar
* p
, const UChar
* e
, OnigEncoding enc
)
7 return ONIGENC_CONSTRUCT_MBCLEN_INVALID();
8 return ONIGENC_CONSTRUCT_MBCLEN_CHARFOUND(1);
11 OnigEncodingDefine(us_ascii
, US_ASCII
) = {
14 1, /* max byte length */
15 1, /* min byte length */
16 onigenc_is_mbc_newline_0x0a
,
17 onigenc_single_byte_mbc_to_code
,
18 onigenc_single_byte_code_to_mbclen
,
19 onigenc_single_byte_code_to_mbc
,
20 onigenc_ascii_mbc_case_fold
,
21 onigenc_ascii_apply_all_case_fold
,
22 onigenc_ascii_get_case_fold_codes_by_str
,
23 onigenc_minimum_property_name_to_ctype
,
24 onigenc_ascii_is_code_ctype
,
25 onigenc_not_support_get_ctype_code_range
,
26 onigenc_single_byte_left_adjust_char_head
,
27 onigenc_always_true_is_allowed_reverse_match
29 ENC_ALIAS("ASCII", "US-ASCII");
30 ENC_ALIAS("ANSI_X3.4-1968", "US-ASCII");
31 ENC_ALIAS("646", "US-ASCII");