|
Ruby
1.9.3p448(2013-06-27revision41675)
|
#include "regint.h"Go to the source code of this file.
Definition at line 74 of file shift_jis.c.
Definition at line 75 of file shift_jis.c.
| #define SJIS_ISMB_FIRST | ( | byte | ) | (EncLen_SJIS[byte] > 1) |
Definition at line 70 of file shift_jis.c.
Referenced by left_adjust_char_head().
| #define SJIS_ISMB_TRAIL | ( | byte | ) | SJIS_CAN_BE_TRAIL_TABLE[(byte)] |
Definition at line 71 of file shift_jis.c.
Referenced by is_allowed_reverse_match(), and left_adjust_char_head().
| enum state_t |
Definition at line 73 of file shift_jis.c.
| static int code_to_mbc | ( | OnigCodePoint | code, |
| UChar * | buf, | ||
| OnigEncoding enc | |||
| ) | [static] |
Definition at line 167 of file shift_jis.c.
| static int code_to_mbclen | ( | OnigCodePoint | code, |
| OnigEncoding enc | ARG_UNUSED | ||
| ) | [static] |
Definition at line 132 of file shift_jis.c.
References EncLen_SJIS, ONIGERR_INVALID_CODE_POINT_VALUE, and ONIGERR_TOO_BIG_WIDE_CHAR_VALUE.
| static int get_ctype_code_range | ( | OnigCtype | ctype, |
| OnigCodePoint * | sb_out, | ||
| const OnigCodePoint * | ranges[], | ||
| OnigEncoding enc | ARG_UNUSED | ||
| ) | [static] |
Definition at line 340 of file shift_jis.c.
References ONIG_NO_SUPPORT_CONFIG, ONIGENC_MAX_STD_CTYPE, ONIGERR_TYPE_BUG, PROPERTY_LIST_INIT_CHECK, and PropertyListNum.
| static int init_property_list | ( | void | ) | [static] |
Definition at line 282 of file shift_jis.c.
References PROPERTY_LIST_ADD_PROP.
| static int is_allowed_reverse_match | ( | const UChar * | s, |
| const UChar * | end, | ||
| OnigEncoding enc | ARG_UNUSED | ||
| ) | [static] |
Definition at line 255 of file shift_jis.c.
References FALSE, SJIS_ISMB_TRAIL, TRUE, and UChar.
| static int is_code_ctype | ( | OnigCodePoint | code, |
| unsigned int | ctype, | ||
| OnigEncoding enc | |||
| ) | [static] |
Definition at line 315 of file shift_jis.c.
References CTYPE_IS_WORD_GRAPH_PRINT, FALSE, onig_is_in_code_range(), ONIGENC_IS_ASCII_CODE_CTYPE, ONIGENC_MAX_STD_CTYPE, ONIGERR_TYPE_BUG, PROPERTY_LIST_INIT_CHECK, PropertyListNum, TRUE, and UChar.
| static UChar* left_adjust_char_head | ( | const UChar * | start, |
| const UChar * | s, | ||
| const UChar * | end, | ||
| OnigEncoding enc | |||
| ) | [static] |
Definition at line 232 of file shift_jis.c.
References enclen, len, SJIS_ISMB_FIRST, SJIS_ISMB_TRAIL, and UChar.
| static int mbc_case_fold | ( | OnigCaseFoldType | flag, |
| const UChar ** | pp, | ||
| const UChar * | end, | ||
| UChar * | lower, | ||
| OnigEncoding | enc | ||
| ) | [static] |
Definition at line 182 of file shift_jis.c.
References enclen, len, ONIGENC_ASCII_CODE_TO_LOWER_CASE, ONIGENC_IS_MBC_ASCII, and UChar.
| static int mbc_enc_len | ( | const UChar * | p, |
| const UChar * | e, | ||
| OnigEncoding enc | ARG_UNUSED | ||
| ) | [static] |
Definition at line 118 of file shift_jis.c.
References ACCEPT, EncLen_SJIS, ONIGENC_CONSTRUCT_MBCLEN_CHARFOUND, ONIGENC_CONSTRUCT_MBCLEN_INVALID, ONIGENC_CONSTRUCT_MBCLEN_NEEDMORE, and trans.
| static OnigCodePoint mbc_to_code | ( | const UChar * | p, |
| const UChar * | end, | ||
| OnigEncoding | enc | ||
| ) | [static] |
Definition at line 148 of file shift_jis.c.
| OnigEncodingDefine | ( | shift_jis | , |
| Shift_JIS | |||
| ) |
| static int property_name_to_ctype | ( | OnigEncoding | enc, |
| UChar * | p, | ||
| UChar * | end | ||
| ) | [static] |
Definition at line 295 of file shift_jis.c.
References ALLOCA_N, onig_st_lookup_strend(), ONIGENC_ASCII_CODE_TO_LOWER_CASE, onigenc_minimum_property_name_to_ctype(), PROPERTY_LIST_INIT_CHECK, and UChar.
const OnigCodePoint CR_Hiragana[] [static] |
{
1,
0x829f, 0x82f1
}
Definition at line 268 of file shift_jis.c.
const OnigCodePoint CR_Katakana[] [static] |
{
4,
0x00a6, 0x00af,
0x00b1, 0x00dd,
0x8340, 0x837e,
0x8380, 0x8396,
}
Definition at line 273 of file shift_jis.c.
const int EncLen_SJIS[] [static] |
{
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1
}
Definition at line 32 of file shift_jis.c.
Referenced by code_to_mbclen(), and mbc_enc_len().
int PropertyInited = 0 [static] |
Definition at line 262 of file shift_jis.c.
const OnigCodePoint** PropertyList [static] |
Definition at line 263 of file shift_jis.c.
int PropertyListNum [static] |
Definition at line 264 of file shift_jis.c.
Referenced by get_ctype_code_range(), and is_code_ctype().
int PropertyListSize [static] |
Definition at line 265 of file shift_jis.c.
hash_table_type* PropertyNameTable [static] |
Definition at line 266 of file shift_jis.c.
const char SJIS_CAN_BE_TRAIL_TABLE[256] [static] |
{
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0
}
Definition at line 51 of file shift_jis.c.
Definition at line 76 of file shift_jis.c.
Referenced by mbc_enc_len().
1.7.6.1