Ruby
2.7.1p83(2020-03-31revisiona0c7c23c9cec0d0ffcba012279cd652d28ad5bf3)
|
#include "regint.h"
Go to the source code of this file.
int onigenc_apply_all_case_fold_with_map | ( | int | map_size, |
const OnigPairCaseFoldCodes | map[], | ||
int | ess_tsett_flag, | ||
OnigCaseFoldType | flag, | ||
OnigApplyAllCaseFoldFunc | f, | ||
void * | arg | ||
) |
Definition at line 463 of file regenc.c.
References arg, f, OnigPairCaseFoldCodes::from, i, onigenc_ascii_apply_all_case_fold(), and OnigPairCaseFoldCodes::to.
int onigenc_ascii_apply_all_case_fold | ( | OnigCaseFoldType flag | ARG_UNUSED, |
OnigApplyAllCaseFoldFunc | f, | ||
void * | arg, | ||
OnigEncoding enc | ARG_UNUSED | ||
) |
Definition at line 412 of file regenc.c.
References arg, OnigPairCaseFoldCodes::from, i, numberof, OnigAsciiLowerMap, and OnigPairCaseFoldCodes::to.
Referenced by onigenc_apply_all_case_fold_with_map().
int onigenc_ascii_get_case_fold_codes_by_str | ( | OnigCaseFoldType flag | ARG_UNUSED, |
const OnigUChar * | p, | ||
const OnigUChar *end | ARG_UNUSED, | ||
OnigCaseFoldCodeItem | items[], | ||
OnigEncoding enc | ARG_UNUSED | ||
) |
Definition at line 433 of file regenc.c.
References OnigCaseFoldCodeItem::byte_len, OnigCaseFoldCodeItem::code, and OnigCaseFoldCodeItem::code_len.
int onigenc_ascii_is_code_ctype | ( | OnigCodePoint | code, |
unsigned int | ctype, | ||
OnigEncoding enc | ARG_UNUSED | ||
) |
Definition at line 670 of file regenc.c.
References FALSE, and ONIGENC_IS_ASCII_CODE_CTYPE.
int onigenc_ascii_mbc_case_fold | ( | OnigCaseFoldType flag | ARG_UNUSED, |
const UChar ** | p, | ||
const UChar * | end, | ||
UChar * | lower, | ||
OnigEncoding enc | ARG_UNUSED | ||
) |
Definition at line 592 of file regenc.c.
References ONIGENC_ASCII_CODE_TO_LOWER_CASE.
int onigenc_ascii_only_case_map | ( | OnigCaseFoldType * | flagP, |
const OnigUChar ** | pp, | ||
const OnigUChar * | end, | ||
OnigUChar * | to, | ||
OnigUChar * | to_end, | ||
const struct OnigEncodingTypeST * | enc | ||
) |
Definition at line 955 of file regenc.c.
References ONIGENC_CASE_DOWNCASE, ONIGENC_CASE_FOLD, ONIGENC_CASE_MODIFIED, ONIGENC_CASE_TITLECASE, ONIGENC_CASE_UPCASE, ONIGENC_CODE_TO_MBC, ONIGENC_MBC_TO_CODE, and ONIGENC_PRECISE_MBC_ENC_LEN.
int onigenc_get_case_fold_codes_by_str_with_map | ( | int | map_size, |
const OnigPairCaseFoldCodes | map[], | ||
int | ess_tsett_flag, | ||
OnigCaseFoldType flag | ARG_UNUSED, | ||
const OnigUChar * | p, | ||
const OnigUChar * | end, | ||
OnigCaseFoldCodeItem | items[] | ||
) |
Definition at line 491 of file regenc.c.
References OnigCaseFoldCodeItem::byte_len, OnigCaseFoldCodeItem::code, OnigCaseFoldCodeItem::code_len, OnigPairCaseFoldCodes::from, i, and OnigPairCaseFoldCodes::to.
OnigEncoding onigenc_get_default_encoding | ( | void | ) |
Definition at line 42 of file regenc.c.
References OnigEncDefaultCharEncoding.
UChar* onigenc_get_left_adjust_char_head | ( | OnigEncoding | enc, |
const UChar * | start, | ||
const UChar * | s, | ||
const UChar * | end | ||
) |
Definition at line 377 of file regenc.c.
References ONIGENC_LEFT_ADJUST_CHAR_HEAD.
UChar* onigenc_get_prev_char_head | ( | OnigEncoding | enc, |
const UChar * | start, | ||
const UChar * | s, | ||
const UChar * | end | ||
) |
Definition at line 92 of file regenc.c.
References NULL, ONIGENC_LEFT_ADJUST_CHAR_HEAD, and UChar.
UChar* onigenc_get_right_adjust_char_head | ( | OnigEncoding | enc, |
const UChar * | start, | ||
const UChar * | s, | ||
const UChar * | end | ||
) |
Definition at line 66 of file regenc.c.
References enclen, ONIGENC_LEFT_ADJUST_CHAR_HEAD, and UChar.
int onigenc_mb2_code_to_mbc | ( | OnigEncoding | enc, |
OnigCodePoint | code, | ||
UChar * | buf | ||
) |
int onigenc_mb2_code_to_mbclen | ( | OnigCodePoint | code, |
OnigEncoding enc | ARG_UNUSED | ||
) |
Definition at line 740 of file regenc.c.
References ONIGERR_TOO_BIG_WIDE_CHAR_VALUE.
int onigenc_mb2_is_code_ctype | ( | OnigEncoding | enc, |
OnigCodePoint | code, | ||
unsigned int | ctype | ||
) |
Definition at line 830 of file regenc.c.
References CTYPE_IS_WORD_GRAPH_PRINT, FALSE, ONIGENC_CODE_TO_MBCLEN, ONIGENC_IS_ASCII_CODE_CTYPE, and TRUE.
int onigenc_mb4_code_to_mbc | ( | OnigEncoding | enc, |
OnigCodePoint | code, | ||
UChar * | buf | ||
) |
int onigenc_mb4_code_to_mbclen | ( | OnigCodePoint | code, |
OnigEncoding enc | ARG_UNUSED | ||
) |
int onigenc_mb4_is_code_ctype | ( | OnigEncoding | enc, |
OnigCodePoint | code, | ||
unsigned int | ctype | ||
) |
Definition at line 845 of file regenc.c.
References CTYPE_IS_WORD_GRAPH_PRINT, FALSE, ONIGENC_CODE_TO_MBCLEN, ONIGENC_IS_ASCII_CODE_CTYPE, and TRUE.
Definition at line 55 of file regenc.c.
References ONIGENC_MBCLEN_CHARFOUND_LEN, ONIGENC_MBCLEN_CHARFOUND_P, ONIGENC_MBCLEN_NEEDMORE_LEN, ONIGENC_MBCLEN_NEEDMORE_P, and ONIGENC_PRECISE_MBC_ENC_LEN.
int onigenc_mbn_mbc_case_fold | ( | OnigEncoding | enc, |
OnigCaseFoldType flag | ARG_UNUSED, | ||
const UChar ** | pp, | ||
const UChar *end | ARG_UNUSED, | ||
UChar * | lower | ||
) |
Definition at line 698 of file regenc.c.
References enclen, i, len, ONIGENC_ASCII_CODE_TO_LOWER_CASE, ONIGENC_IS_MBC_ASCII, and UChar.
OnigCodePoint onigenc_mbn_mbc_to_code | ( | OnigEncoding | enc, |
const UChar * | p, | ||
const UChar * | end | ||
) |
Definition at line 797 of file regenc.c.
References PosixBracketEntryType::ctype, len, PosixBracketEntryType::len, PosixBracketEntryType::name, numberof, ONIGENC_CTYPE_ALNUM, ONIGENC_CTYPE_ALPHA, ONIGENC_CTYPE_ASCII, ONIGENC_CTYPE_BLANK, ONIGENC_CTYPE_CNTRL, ONIGENC_CTYPE_DIGIT, ONIGENC_CTYPE_GRAPH, ONIGENC_CTYPE_LOWER, ONIGENC_CTYPE_PRINT, ONIGENC_CTYPE_PUNCT, ONIGENC_CTYPE_SPACE, ONIGENC_CTYPE_UPPER, ONIGENC_CTYPE_WORD, ONIGENC_CTYPE_XDIGIT, onigenc_strlen(), onigenc_with_ascii_strnicmp(), ONIGERR_INVALID_CHAR_PROPERTY_NAME, and POSIX_BRACKET_ENTRY_INIT.
int onigenc_not_support_get_ctype_code_range | ( | OnigCtype ctype | ARG_UNUSED, |
OnigCodePoint *sb_out | ARG_UNUSED, | ||
const OnigCodePoint *ranges[] | ARG_UNUSED, | ||
OnigEncoding | enc | ||
) |
Definition at line 573 of file regenc.c.
References ONIG_NO_SUPPORT_CONFIG.
int onigenc_set_default_encoding | ( | OnigEncoding | enc | ) |
Definition at line 48 of file regenc.c.
References OnigEncDefaultCharEncoding.
Referenced by Init_Regexp().
int onigenc_single_byte_ascii_only_case_map | ( | OnigCaseFoldType * | flagP, |
const OnigUChar ** | pp, | ||
const OnigUChar * | end, | ||
OnigUChar * | to, | ||
OnigUChar * | to_end, | ||
const struct OnigEncodingTypeST * | enc | ||
) |
Definition at line 987 of file regenc.c.
References ONIGENC_CASE_DOWNCASE, ONIGENC_CASE_FOLD, ONIGENC_CASE_MODIFIED, ONIGENC_CASE_TITLECASE, and ONIGENC_CASE_UPCASE.
int onigenc_single_byte_code_to_mbc | ( | OnigCodePoint | code, |
UChar * | buf, | ||
OnigEncoding enc | ARG_UNUSED | ||
) |
Definition at line 634 of file regenc.c.
References buf, rb_eRangeError, rb_raise(), and UChar.
int onigenc_single_byte_code_to_mbclen | ( | OnigCodePoint code | ARG_UNUSED, |
OnigEncoding enc | ARG_UNUSED | ||
) |
OnigCodePoint onigenc_single_byte_mbc_to_code | ( | const UChar * | p, |
const UChar *end | ARG_UNUSED, | ||
OnigEncoding enc | ARG_UNUSED | ||
) |
UChar* onigenc_step_back | ( | OnigEncoding | enc, |
const UChar * | start, | ||
const UChar * | s, | ||
const UChar * | end, | ||
int | n | ||
) |
Definition at line 101 of file regenc.c.
References n, NULL, ONIG_IS_NOT_NULL, ONIGENC_LEFT_ADJUST_CHAR_HEAD, and UChar.
int onigenc_str_bytelen_null | ( | OnigEncoding | enc, |
const UChar * | s | ||
) |
Definition at line 163 of file regenc.c.
References len, ONIGENC_MBC_ENC_LEN, ONIGENC_MBC_MAXLEN, ONIGENC_MBC_MINLEN, and UChar.
Definition at line 123 of file regenc.c.
References n, ONIGENC_MBC_ENC_LEN, and UChar.
Referenced by onigenc_minimum_property_name_to_ctype().
int onigenc_strlen_null | ( | OnigEncoding | enc, |
const UChar * | s | ||
) |
Definition at line 136 of file regenc.c.
References len, n, ONIGENC_MBC_ENC_LEN, ONIGENC_MBC_MAXLEN, ONIGENC_MBC_MINLEN, and UChar.
int onigenc_with_ascii_strnicmp | ( | OnigEncoding | enc, |
const UChar * | p, | ||
const UChar * | end, | ||
const UChar * | sascii, | ||
int | n | ||
) |
Definition at line 879 of file regenc.c.
References enclen, int, n, ONIGENC_ASCII_CODE_TO_LOWER_CASE, ONIGENC_IS_ASCII_CODE, and ONIGENC_MBC_TO_CODE.
Referenced by onigenc_minimum_property_name_to_ctype().
const OnigPairCaseFoldCodes OnigAsciiLowerMap[] |
Definition at line 382 of file regenc.c.
Referenced by onigenc_ascii_apply_all_case_fold().
OnigEncoding OnigEncDefaultCharEncoding = ONIG_ENCODING_INIT_DEFAULT |
Definition at line 33 of file regenc.c.
Referenced by onigenc_get_default_encoding(), and onigenc_set_default_encoding().