Ruby
1.9.3p429(2013-05-15revision40747)
Main Page
Modules
Data Structures
Files
File List
Globals
enc
us_ascii.c
Go to the documentation of this file.
1
#include "
regenc.h
"
2
3
static
int
4
us_ascii_mbc_enc_len
(
const
UChar
*
p
,
const
UChar
* e,
OnigEncoding
enc)
5
{
6
if
(*p & 0x80)
7
return
ONIGENC_CONSTRUCT_MBCLEN_INVALID
();
8
return
ONIGENC_CONSTRUCT_MBCLEN_CHARFOUND
(1);
9
}
10
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
28
};
29
ENC_ALIAS
(
"ASCII"
,
"US-ASCII"
)
30
ENC_ALIAS
("ANSI_X3.4-1968", "US-
ASCII
")
31
ENC_ALIAS
("646", "US-
ASCII
")
32
Generated on Thu May 23 2013 20:32:59 for Ruby by
1.8.3