* test/ruby/envutil.rb (assert_normal_exit): show pid when fail.
[ruby-svn.git] / enc / us_ascii.c
blob8a18966ee3a32f4e9e5996614b3856db3114c85b
1 #include "regenc.h"
3 extern int
4 us_ascii_mbc_enc_len(const UChar* p, const UChar* e, OnigEncoding enc)
6 if (*p & 0x80)
7 return ONIGENC_CONSTRUCT_MBCLEN_INVALID();
8 return ONIGENC_CONSTRUCT_MBCLEN_CHARFOUND(1);
11 OnigEncodingDefine(us_ascii, US_ASCII) = {
12 us_ascii_mbc_enc_len,
13 "US-ASCII",/* name */
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");