#include "regint.h"
#include "enc/unicode/name2ctype.h"
#include "ruby/st.h"
Go to the source code of this file.
#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().
#define numberof | ( | array | ) | (int)(sizeof(array) / sizeof((array)[0])) |
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 int code2_cmp | ( | OnigCodePoint * | x, | |
OnigCodePoint * | y | |||
) | [static] |
static st_index_t code2_hash | ( | OnigCodePoint * | x | ) | [static] |
static int code3_cmp | ( | OnigCodePoint * | x, | |
OnigCodePoint * | y | |||
) | [static] |
static st_index_t code3_hash | ( | OnigCodePoint * | x | ) | [static] |
static int init_case_fold_table | ( | void | ) | [static] |
Definition at line 2161 of file unicode.c.
References CaseFoldInited, CaseUnfold_13_Type::from, CaseUnfold_12_Type::from, CaseUnfold_11_Type::from, CaseFold_11_Type::from, numberof, ONIG_IS_NULL, st_add_direct(), st_init_numtable_with_size(), st_init_table_with_size(), CaseUnfold_13_Type::to, CaseUnfold_12_Type::to, CaseUnfold_11_Type::to, and CaseFold_11_Type::to.
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 2274 of file unicode.c.
References CodePointList2::code, CodePointList3::code, CaseUnfold_11_Type::from, INTERNAL_ONIGENC_CASE_FOLD_MULTI_CHAR, CodePointList2::n, CodePointList3::n, numberof, ONIGENC_CASE_FOLD_TURKISH_AZERI, CaseUnfold_13_Type::to, CaseUnfold_12_Type::to, and CaseUnfold_11_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, and CodeRanges.
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 2410 of file unicode.c.
References OnigCaseFoldCodeItem::byte_len, CaseFoldInited, OnigCaseFoldCodeItem::code, OnigCaseFoldCodeItem::code_len, enclen, init_case_fold_table(), INTERNAL_ONIGENC_CASE_FOLD_MULTI_CHAR, len, onig_st_lookup, ONIGENC_CASE_FOLD_TURKISH_AZERI, and ONIGENC_MBC_TO_CODE.
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, 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 2220 of file unicode.c.
References CaseFoldInited, enclen, init_case_fold_table(), INTERNAL_ONIGENC_CASE_FOLD_MULTI_CHAR, len, onig_st_lookup, ONIGENC_CASE_FOLD_TURKISH_AZERI, ONIGENC_CODE_TO_MBC, ONIGENC_MBC_TO_CODE, 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, ONIGENC_MBC_TO_CODE, PROPERTY_NAME_MAX_SIZE, TOLOWER, and UChar.
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().
const CaseFold_11_Type CaseFold[] [static] |
const CaseFold_11_Type CaseFold_Locale[] [static] |
int CaseFoldInited = 0 [static] |
Definition at line 2159 of file unicode.c.
Referenced by init_case_fold_table(), onigenc_unicode_get_case_fold_codes_by_str(), and onigenc_unicode_mbc_case_fold().
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] |
{ { {0x0066, 0x0066, 0x0069}, {1, {0xfb03 }}}, { {0x0066, 0x0066, 0x006c}, {1, {0xfb04 }}}, { {0x03b1, 0x0342, 0x03b9}, {1, {0x1fb7 }}}, { {0x03b7, 0x0342, 0x03b9}, {1, {0x1fc7 }}}, { {0x03b9, 0x0308, 0x0300}, {1, {0x1fd2 }}}, { {0x03b9, 0x0308, 0x0301}, {2, {0x0390, 0x1fd3 }}}, { {0x03b9, 0x0308, 0x0342}, {1, {0x1fd7 }}}, { {0x03c5, 0x0308, 0x0300}, {1, {0x1fe2 }}}, { {0x03c5, 0x0308, 0x0301}, {2, {0x03b0, 0x1fe3 }}}, { {0x03c5, 0x0308, 0x0342}, {1, {0x1fe7 }}}, { {0x03c5, 0x0313, 0x0300}, {1, {0x1f52 }}}, { {0x03c5, 0x0313, 0x0301}, {1, {0x1f54 }}}, { {0x03c5, 0x0313, 0x0342}, {1, {0x1f56 }}}, { {0x03c9, 0x0342, 0x03b9}, {1, {0x1ff7 }}} }
const unsigned short EncUNICODE_ISO_8859_1_CtypeTable[256] [static] |
struct st_hash_type type_code2_hash [static] |
struct st_hash_type type_code3_hash [static] |
st_table* Unfold1Table [static] |
st_table* Unfold2Table [static] |
st_table* Unfold3Table [static] |