mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
a13c1148a9
setting breakpoint when debugging. * enc/euc_jp.c: add eucjp_ prefix. * enc/sjis.c: add sjis_ prefix. * enc/iso_8859_1.c: add iso_8859_1_ prefix. * enc/iso_8859_2.c: add iso_8859_2_ prefix. * enc/iso_8859_3.c: add iso_8859_3_ prefix. * enc/iso_8859_4.c: add iso_8859_4_ prefix. * enc/iso_8859_5.c: add iso_8859_5_ prefix. * enc/iso_8859_6.c: add iso_8859_6_ prefix. * enc/iso_8859_7.c: add iso_8859_7_ prefix. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14856 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
28 lines
856 B
C
28 lines
856 B
C
#include "regenc.h"
|
|
|
|
extern int
|
|
us_ascii_mbc_enc_len(const UChar* p, const UChar* e, OnigEncoding enc)
|
|
{
|
|
if (*p & 0x80)
|
|
return ONIGENC_CONSTRUCT_MBCLEN_INVALID();
|
|
return ONIGENC_CONSTRUCT_MBCLEN_CHARFOUND(1);
|
|
}
|
|
|
|
OnigEncodingDefine(us_ascii, US_ASCII) = {
|
|
us_ascii_mbc_enc_len,
|
|
"US-ASCII",/* name */
|
|
1, /* max byte length */
|
|
1, /* min byte length */
|
|
onigenc_is_mbc_newline_0x0a,
|
|
onigenc_single_byte_mbc_to_code,
|
|
onigenc_single_byte_code_to_mbclen,
|
|
onigenc_single_byte_code_to_mbc,
|
|
onigenc_ascii_mbc_case_fold,
|
|
onigenc_ascii_apply_all_case_fold,
|
|
onigenc_ascii_get_case_fold_codes_by_str,
|
|
onigenc_minimum_property_name_to_ctype,
|
|
onigenc_ascii_is_code_ctype,
|
|
onigenc_not_support_get_ctype_code_range,
|
|
onigenc_single_byte_left_adjust_char_head,
|
|
onigenc_always_true_is_allowed_reverse_match
|
|
};
|