|
Ruby
1.9.3p551(2014-11-13revision48407)
|
Go to the source code of this file.
Data Structures | |
| struct | CodePointList3 |
| struct | CaseFold_11_Type |
| struct | CaseUnfold_11_Type |
| struct | CodePointList2 |
| struct | CaseUnfold_12_Type |
| struct | CaseUnfold_13_Type |
Macros | |
| #define | ONIGENC_IS_UNICODE_ISO_8859_1_CTYPE(code, ctype) ((EncUNICODE_ISO_8859_1_CtypeTable[code] & CTYPE_TO_BIT(ctype)) != 0) |
| #define | numberof(array) (int)(sizeof(array) / sizeof((array)[0])) |
| #define | CODE_RANGES_NUM numberof(CodeRanges) |
| #define | PROPERTY_NAME_MAX_SIZE MAX_WORD_LENGTH |
Variables | |
| static const unsigned short | EncUNICODE_ISO_8859_1_CtypeTable [256] |
| static const CaseFold_11_Type | CaseFold [] |
| static const CaseFold_11_Type | CaseFold_Locale [] |
| static const CaseUnfold_11_Type | CaseUnfold_11 [] |
| static const CaseUnfold_11_Type | CaseUnfold_11_Locale [] |
| static const CaseUnfold_12_Type | CaseUnfold_12 [] |
| static const CaseUnfold_12_Type | CaseUnfold_12_Locale [] |
| static const CaseUnfold_13_Type | CaseUnfold_13 [] |
| static const struct st_hash_type | type_code2_hash |
| static const struct st_hash_type | type_code3_hash |
| static st_table * | FoldTable |
| static st_table * | Unfold1Table |
| static st_table * | Unfold2Table |
| static st_table * | Unfold3Table |
| static int | CaseFoldInited = 0 |
| #define CODE_RANGES_NUM numberof(CodeRanges) |
Definition at line 2039 of file unicode.c.
Referenced by onigenc_unicode_ctype_code_range(), and onigenc_unicode_is_code_ctype().
Definition at line 2038 of file unicode.c.
Referenced by init_case_fold_table(), and onigenc_unicode_apply_all_case_fold().
| #define ONIGENC_IS_UNICODE_ISO_8859_1_CTYPE | ( | code, | |
| ctype | |||
| ) | ((EncUNICODE_ISO_8859_1_CtypeTable[code] & CTYPE_TO_BIT(ctype)) != 0) |
Definition at line 32 of file unicode.c.
Referenced by onigenc_unicode_is_code_ctype().
| #define PROPERTY_NAME_MAX_SIZE MAX_WORD_LENGTH |
Definition at line 2083 of file unicode.c.
Referenced by onigenc_unicode_property_name_to_ctype().
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 2160 of file unicode.c.
References CaseFold, CaseFold_Locale, CaseFoldInited, CaseUnfold_11, CaseUnfold_11_Locale, CaseUnfold_12, CaseUnfold_12_Locale, CaseUnfold_13, FoldTable, CaseUnfold_11_Type::from, CaseUnfold_12_Type::from, CaseUnfold_13_Type::from, i, numberof, ONIG_IS_NULL, ONIGERR_MEMORY, p, st_add_direct, st_init_numtable_with_size, st_init_table_with_size, THREAD_ATOMIC_END, THREAD_ATOMIC_START, CaseUnfold_11_Type::to, CaseUnfold_12_Type::to, CaseUnfold_13_Type::to, type_code2_hash, type_code3_hash, Unfold1Table, Unfold2Table, and Unfold3Table.
Referenced by onigenc_unicode_get_case_fold_codes_by_str(), and onigenc_unicode_mbc_case_fold().
| int onigenc_unicode_apply_all_case_fold | ( | OnigCaseFoldType | flag, |
| OnigApplyAllCaseFoldFunc | f, | ||
| void * | arg, | ||
| OnigEncoding enc | ARG_UNUSED | ||
| ) |
Definition at line 2273 of file unicode.c.
References CaseUnfold_11, CaseUnfold_11_Locale, CaseUnfold_12, CaseUnfold_12_Locale, CaseUnfold_13, CodePointList3::code, CodePointList2::code, CaseUnfold_11_Type::from, i, INTERNAL_ONIGENC_CASE_FOLD_MULTI_CHAR, CodePointList3::n, CodePointList2::n, numberof, ONIGENC_CASE_FOLD_TURKISH_AZERI, CaseUnfold_11_Type::to, CaseUnfold_12_Type::to, and CaseUnfold_13_Type::to.
| int onigenc_unicode_ctype_code_range | ( | int | ctype, |
| const OnigCodePoint * | ranges[] | ||
| ) |
Definition at line 2061 of file unicode.c.
References CODE_RANGES_NUM, CodeRanges, and ONIGERR_TYPE_BUG.
Referenced by get_ctype_code_range(), and onigenc_utf16_32_get_ctype_code_range().
| int onigenc_unicode_get_case_fold_codes_by_str | ( | OnigEncoding | enc, |
| OnigCaseFoldType | flag, | ||
| const OnigUChar * | p, | ||
| const OnigUChar * | end, | ||
| OnigCaseFoldCodeItem | items[] | ||
| ) |
Definition at line 2409 of file unicode.c.
References OnigCaseFoldCodeItem::byte_len, CaseFoldInited, OnigCaseFoldCodeItem::code, OnigCaseFoldCodeItem::code_len, enclen, FoldTable, i, init_case_fold_table(), INTERNAL_ONIGENC_CASE_FOLD_MULTI_CHAR, len, ONIGENC_CASE_FOLD_TURKISH_AZERI, ONIGENC_MBC_TO_CODE, p, Unfold1Table, Unfold2Table, and Unfold3Table.
Referenced by get_case_fold_codes_by_str(), utf16be_get_case_fold_codes_by_str(), utf16le_get_case_fold_codes_by_str(), utf32be_get_case_fold_codes_by_str(), and utf32le_get_case_fold_codes_by_str().
| int onigenc_unicode_is_code_ctype | ( | OnigCodePoint | code, |
| unsigned int | ctype, | ||
| OnigEncoding enc | ARG_UNUSED | ||
| ) |
Definition at line 2042 of file unicode.c.
References CODE_RANGES_NUM, CodeRanges, onig_is_in_code_range(), ONIGENC_IS_UNICODE_ISO_8859_1_CTYPE, ONIGENC_MAX_STD_CTYPE, ONIGERR_TYPE_BUG, UChar, and USE_UNICODE_PROPERTIES.
| int onigenc_unicode_mbc_case_fold | ( | OnigEncoding | enc, |
| OnigCaseFoldType flag | ARG_UNUSED, | ||
| const UChar ** | pp, | ||
| const UChar * | end, | ||
| UChar * | fold | ||
| ) |
Definition at line 2219 of file unicode.c.
References CaseFoldInited, enclen, FoldTable, i, init_case_fold_table(), INTERNAL_ONIGENC_CASE_FOLD_MULTI_CHAR, len, ONIGENC_CASE_FOLD_TURKISH_AZERI, ONIGENC_CODE_TO_MBC, ONIGENC_MBC_TO_CODE, p, and UChar.
Referenced by mbc_case_fold(), utf16be_mbc_case_fold(), utf16le_mbc_case_fold(), utf32be_mbc_case_fold(), and utf32le_mbc_case_fold().
| int onigenc_unicode_property_name_to_ctype | ( | OnigEncoding | enc, |
| UChar * | name, | ||
| UChar * | end | ||
| ) |
Definition at line 2086 of file unicode.c.
References buf, enclen, len, name, ONIGENC_MBC_TO_CODE, ONIGERR_INVALID_CHAR_PROPERTY_NAME, p, PROPERTY_NAME_MAX_SIZE, TOLOWER, UChar, and uniname2ctype().
| int onigenc_utf16_32_get_ctype_code_range | ( | OnigCtype | ctype, |
| OnigCodePoint * | sb_out, | ||
| const OnigCodePoint * | ranges[], | ||
| struct OnigEncodingTypeST *enc | ARG_UNUSED | ||
| ) |
Definition at line 2073 of file unicode.c.
References onigenc_unicode_ctype_code_range().
|
static |
Definition at line 106 of file unicode.c.
Referenced by init_case_fold_table().
|
static |
Definition at line 1088 of file unicode.c.
Referenced by init_case_fold_table().
|
static |
Definition at line 2158 of file unicode.c.
Referenced by init_case_fold_table(), onigenc_unicode_get_case_fold_codes_by_str(), and onigenc_unicode_mbc_case_fold().
|
static |
Definition at line 1093 of file unicode.c.
Referenced by init_case_fold_table(), and onigenc_unicode_apply_all_case_fold().
|
static |
Definition at line 1952 of file unicode.c.
Referenced by init_case_fold_table(), and onigenc_unicode_apply_all_case_fold().
|
static |
Definition at line 1956 of file unicode.c.
Referenced by init_case_fold_table(), and onigenc_unicode_apply_all_case_fold().
|
static |
Definition at line 2017 of file unicode.c.
Referenced by init_case_fold_table(), and onigenc_unicode_apply_all_case_fold().
|
static |
Definition at line 2021 of file unicode.c.
Referenced by init_case_fold_table(), and onigenc_unicode_apply_all_case_fold().
|
static |
|
static |
Definition at line 2154 of file unicode.c.
Referenced by init_case_fold_table(), onigenc_unicode_get_case_fold_codes_by_str(), and onigenc_unicode_mbc_case_fold().
|
static |
|
static |
|
static |
Definition at line 2155 of file unicode.c.
Referenced by init_case_fold_table(), and onigenc_unicode_get_case_fold_codes_by_str().
|
static |
Definition at line 2156 of file unicode.c.
Referenced by init_case_fold_table(), and onigenc_unicode_get_case_fold_codes_by_str().
|
static |
Definition at line 2157 of file unicode.c.
Referenced by init_case_fold_table(), and onigenc_unicode_get_case_fold_codes_by_str().
1.8.14