|
Ruby
1.9.3p448(2013-06-27revision41675)
|
#include "regenc.h"Go to the source code of this file.
| #define BIG5_HKSCS_P | ( | enc | ) | ((enc)->precise_mbc_enc_len == big5_hkscs_mbc_enc_len) |
| #define BIG5_ISMB_FIRST | ( | byte | ) |
( \
BIG5_HKSCS_P(enc) ? EncLen_BIG5_HKSCS[byte] > 1 : \
EncLen_BIG5[byte] > 1 \
)
Definition at line 242 of file big5.c.
Referenced by big5_left_adjust_char_head().
| #define BIG5_ISMB_TRAIL | ( | byte | ) | BIG5_CAN_BE_TRAIL_TABLE[(byte)] |
Definition at line 246 of file big5.c.
Referenced by big5_is_allowed_reverse_match(), and big5_left_adjust_char_head().
| #define BIG5_UAO_P | ( | enc | ) | ((enc)->precise_mbc_enc_len == big5_uao_mbc_enc_len) |
| #define RETURN | ( | n | ) |
return s == ACCEPT ? ONIGENC_CONSTRUCT_MBCLEN_CHARFOUND(n) : \ ONIGENC_CONSTRUCT_MBCLEN_INVALID()
| enum state_t |
| static int big5_code_to_mbc | ( | OnigCodePoint | code, |
| UChar * | buf, | ||
| OnigEncoding | enc | ||
| ) | [static] |
Definition at line 192 of file big5.c.
References onigenc_mb2_code_to_mbc().
| static int big5_hkscs_mbc_enc_len | ( | const UChar * | p, |
| const UChar * | e, | ||
| OnigEncoding enc | ARG_UNUSED | ||
| ) | [static] |
Definition at line 174 of file big5.c.
References big5_mbc_enc_len0(), and EncLen_BIG5_HKSCS.
| static int big5_is_allowed_reverse_match | ( | const UChar * | s, |
| const UChar *end | ARG_UNUSED, | ||
| OnigEncoding enc | ARG_UNUSED | ||
| ) | [static] |
| static int big5_is_code_ctype | ( | OnigCodePoint | code, |
| unsigned int | ctype, | ||
| OnigEncoding | enc | ||
| ) | [static] |
Definition at line 215 of file big5.c.
References onigenc_mb2_is_code_ctype().
| static UChar* big5_left_adjust_char_head | ( | const UChar * | start, |
| const UChar * | s, | ||
| const UChar * | end, | ||
| OnigEncoding | enc | ||
| ) | [static] |
Definition at line 249 of file big5.c.
References BIG5_ISMB_FIRST, BIG5_ISMB_TRAIL, enclen, len, and UChar.
| static int big5_mbc_case_fold | ( | OnigCaseFoldType | flag, |
| const UChar ** | pp, | ||
| const UChar * | end, | ||
| UChar * | lower, | ||
| OnigEncoding | enc | ||
| ) | [static] |
Definition at line 198 of file big5.c.
References onigenc_mbn_mbc_case_fold().
| static int big5_mbc_enc_len | ( | const UChar * | p, |
| const UChar * | e, | ||
| OnigEncoding enc | ARG_UNUSED | ||
| ) | [static] |
Definition at line 168 of file big5.c.
References big5_mbc_enc_len0(), and EncLen_BIG5.
| static int big5_mbc_enc_len0 | ( | const UChar * | p, |
| const UChar * | e, | ||
| int | tridx, | ||
| const int | tbl[] | ||
| ) | [static] |
Definition at line 153 of file big5.c.
References ONIGENC_CONSTRUCT_MBCLEN_NEEDMORE, RETURN, and trans.
Referenced by big5_hkscs_mbc_enc_len(), big5_mbc_enc_len(), and big5_uao_mbc_enc_len().
| static OnigCodePoint big5_mbc_to_code | ( | const UChar * | p, |
| const UChar * | end, | ||
| OnigEncoding | enc | ||
| ) | [static] |
Definition at line 186 of file big5.c.
References onigenc_mbn_mbc_to_code().
| static int big5_uao_mbc_enc_len | ( | const UChar * | p, |
| const UChar * | e, | ||
| OnigEncoding enc | ARG_UNUSED | ||
| ) | [static] |
Definition at line 180 of file big5.c.
References big5_mbc_enc_len0(), and EncLen_BIG5_UAO.
| OnigEncodingDefine | ( | big5 | , |
| BIG5 | |||
| ) |
| OnigEncodingDefine | ( | big5_hkscs | , |
| BIG5_HKSCS | |||
| ) |
| OnigEncodingDefine | ( | big5_uao | , |
| BIG5_UAO | |||
| ) |
const char BIG5_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, 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}
Definition at line 70 of file big5.c.
Referenced by big5_uao_mbc_enc_len().
Definition at line 93 of file big5.c.
Referenced by big5_mbc_enc_len0(), encodes(), and tr_trans().
1.7.6.1