diff --git a/ChangeLog b/ChangeLog index 253ac87e3e..7cab8c4a2d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Thu Dec 20 02:50:28 2007 Nobuyoshi Nakada + + * enc/iso8859_{1..16}.c: adjust for ruby. + Thu Dec 20 02:28:29 2007 Nobuyoshi Nakada * enc/iso8859_{1..16}.c: imported from Onigiruma 5.9.0. diff --git a/enc/iso8859_1.c b/enc/iso8859_1.c index 8ce9debe51..fc2d93c61f 100644 --- a/enc/iso8859_1.c +++ b/enc/iso8859_1.c @@ -103,7 +103,8 @@ static const OnigPairCaseFoldCodes CaseFoldMap[] = { static int apply_all_case_fold(OnigCaseFoldType flag, - OnigApplyAllCaseFoldFunc f, void* arg) + OnigApplyAllCaseFoldFunc f, void* arg, + OnigEncoding enc) { return onigenc_apply_all_case_fold_with_map( sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1, @@ -111,8 +112,10 @@ apply_all_case_fold(OnigCaseFoldType flag, } static int -get_case_fold_codes_by_str(OnigCaseFoldType flag, const OnigUChar* p, - const OnigUChar* end, OnigCaseFoldCodeItem items[]) +get_case_fold_codes_by_str(OnigCaseFoldType flag, + const OnigUChar* p, const OnigUChar* end, + OnigCaseFoldCodeItem items[], + OnigEncoding enc) { if (0x41 <= *p && *p <= 0x5a) { items[0].byte_len = 1; @@ -199,7 +202,7 @@ get_case_fold_codes_by_str(OnigCaseFoldType flag, const OnigUChar* p, static int mbc_case_fold(OnigCaseFoldType flag, const UChar** pp, const UChar* end, - UChar* lower) + UChar* lower, OnigEncoding enc) { const UChar* p = *pp; @@ -243,7 +246,7 @@ is_mbc_ambiguous(OnigCaseFoldType flag, #endif static int -is_code_ctype(OnigCodePoint code, unsigned int ctype) +is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncoding enc) { if (code < 256) return ENC_IS_ISO_8859_1_CTYPE(code, ctype); diff --git a/enc/iso8859_10.c b/enc/iso8859_10.c index 91c24c5299..976b428579 100644 --- a/enc/iso8859_10.c +++ b/enc/iso8859_10.c @@ -105,7 +105,8 @@ static const unsigned short EncISO_8859_10_CtypeTable[256] = { static int iso_8859_10_mbc_case_fold(OnigCaseFoldType flag, - const UChar** pp, const UChar* end, UChar* lower) + const UChar** pp, const UChar* end, UChar* lower, + OnigEncoding enc) { const UChar* p = *pp; @@ -145,7 +146,7 @@ iso_8859_10_is_mbc_ambiguous(OnigCaseFoldType flag, #endif static int -iso_8859_10_is_code_ctype(OnigCodePoint code, unsigned int ctype) +iso_8859_10_is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncoding enc) { if (code < 256) return ENC_IS_ISO_8859_10_CTYPE(code, ctype); @@ -204,7 +205,8 @@ static const OnigPairCaseFoldCodes CaseFoldMap[] = { static int iso_8859_10_apply_all_case_fold(OnigCaseFoldType flag, - OnigApplyAllCaseFoldFunc f, void* arg) + OnigApplyAllCaseFoldFunc f, void* arg, + OnigEncoding enc) { return onigenc_apply_all_case_fold_with_map( sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1, @@ -213,7 +215,9 @@ iso_8859_10_apply_all_case_fold(OnigCaseFoldType flag, static int iso_8859_10_get_case_fold_codes_by_str(OnigCaseFoldType flag, - const OnigUChar* p, const OnigUChar* end, OnigCaseFoldCodeItem items[]) + const OnigUChar* p, const OnigUChar* end, + OnigCaseFoldCodeItem items[], + OnigEncoding enc) { return onigenc_get_case_fold_codes_by_str_with_map( sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1, diff --git a/enc/iso8859_11.c b/enc/iso8859_11.c index 727c5cb73a..70645faed1 100644 --- a/enc/iso8859_11.c +++ b/enc/iso8859_11.c @@ -68,7 +68,7 @@ static const unsigned short EncISO_8859_11_CtypeTable[256] = { }; static int -iso_8859_11_is_code_ctype(OnigCodePoint code, unsigned int ctype) +iso_8859_11_is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncoding enc) { if (code < 256) return ENC_IS_ISO_8859_11_CTYPE(code, ctype); diff --git a/enc/iso8859_13.c b/enc/iso8859_13.c index d786b9d4af..b3318b2381 100644 --- a/enc/iso8859_13.c +++ b/enc/iso8859_13.c @@ -105,7 +105,8 @@ static const unsigned short EncISO_8859_13_CtypeTable[256] = { static int iso_8859_13_mbc_case_fold(OnigCaseFoldType flag, - const UChar** pp, const UChar* end, UChar* lower) + const UChar** pp, const UChar* end, UChar* lower, + OnigEncoding enc) { const UChar* p = *pp; @@ -149,7 +150,7 @@ iso_8859_13_is_mbc_ambiguous(OnigCaseFoldType flag, #endif static int -iso_8859_13_is_code_ctype(OnigCodePoint code, unsigned int ctype) +iso_8859_13_is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncoding enc) { if (code < 256) return ENC_IS_ISO_8859_13_CTYPE(code, ctype); @@ -193,7 +194,8 @@ static const OnigPairCaseFoldCodes CaseFoldMap[] = { static int iso_8859_13_apply_all_case_fold(OnigCaseFoldType flag, - OnigApplyAllCaseFoldFunc f, void* arg) + OnigApplyAllCaseFoldFunc f, void* arg, + OnigEncoding enc) { return onigenc_apply_all_case_fold_with_map( sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1, @@ -202,7 +204,9 @@ iso_8859_13_apply_all_case_fold(OnigCaseFoldType flag, static int iso_8859_13_get_case_fold_codes_by_str(OnigCaseFoldType flag, - const OnigUChar* p, const OnigUChar* end, OnigCaseFoldCodeItem items[]) + const OnigUChar* p, const OnigUChar* end, + OnigCaseFoldCodeItem items[], + OnigEncoding enc) { return onigenc_get_case_fold_codes_by_str_with_map( sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1, diff --git a/enc/iso8859_14.c b/enc/iso8859_14.c index d474b88b25..030e030ee7 100644 --- a/enc/iso8859_14.c +++ b/enc/iso8859_14.c @@ -105,7 +105,8 @@ static const unsigned short EncISO_8859_14_CtypeTable[256] = { static int iso_8859_14_mbc_case_fold(OnigCaseFoldType flag, - const UChar** pp, const UChar* end, UChar* lower) + const UChar** pp, const UChar* end, UChar* lower, + OnigEncoding enc) { const UChar* p = *pp; @@ -145,7 +146,7 @@ iso_8859_14_is_mbc_ambiguous(OnigCaseFoldType flag, #endif static int -iso_8859_14_is_code_ctype(OnigCodePoint code, unsigned int ctype) +iso_8859_14_is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncoding enc) { if (code < 256) return ENC_IS_ISO_8859_14_CTYPE(code, ctype); @@ -205,7 +206,8 @@ static const OnigPairCaseFoldCodes CaseFoldMap[] = { static int iso_8859_14_apply_all_case_fold(OnigCaseFoldType flag, - OnigApplyAllCaseFoldFunc f, void* arg) + OnigApplyAllCaseFoldFunc f, void* arg, + OnigEncoding enc) { return onigenc_apply_all_case_fold_with_map( sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1, @@ -214,7 +216,9 @@ iso_8859_14_apply_all_case_fold(OnigCaseFoldType flag, static int iso_8859_14_get_case_fold_codes_by_str(OnigCaseFoldType flag, - const OnigUChar* p, const OnigUChar* end, OnigCaseFoldCodeItem items[]) + const OnigUChar* p, const OnigUChar* end, + OnigCaseFoldCodeItem items[], + OnigEncoding enc) { return onigenc_get_case_fold_codes_by_str_with_map( sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1, diff --git a/enc/iso8859_15.c b/enc/iso8859_15.c index 343cd3dc6b..7650bf9eb8 100644 --- a/enc/iso8859_15.c +++ b/enc/iso8859_15.c @@ -105,7 +105,8 @@ static const unsigned short EncISO_8859_15_CtypeTable[256] = { static int iso_8859_15_mbc_case_fold(OnigCaseFoldType flag, - const UChar** pp, const UChar* end, UChar* lower) + const UChar** pp, const UChar* end, UChar* lower, + OnigEncoding enc) { const UChar* p = *pp; @@ -149,7 +150,7 @@ iso_8859_15_is_mbc_ambiguous(OnigCaseFoldType flag, #endif static int -iso_8859_15_is_code_ctype(OnigCodePoint code, unsigned int ctype) +iso_8859_15_is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncoding enc) { if (code < 256) return ENC_IS_ISO_8859_15_CTYPE(code, ctype); @@ -199,7 +200,8 @@ static const OnigPairCaseFoldCodes CaseFoldMap[] = { static int iso_8859_15_apply_all_case_fold(OnigCaseFoldType flag, - OnigApplyAllCaseFoldFunc f, void* arg) + OnigApplyAllCaseFoldFunc f, void* arg, + OnigEncoding enc) { return onigenc_apply_all_case_fold_with_map( sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1, @@ -208,7 +210,9 @@ iso_8859_15_apply_all_case_fold(OnigCaseFoldType flag, static int iso_8859_15_get_case_fold_codes_by_str(OnigCaseFoldType flag, - const OnigUChar* p, const OnigUChar* end, OnigCaseFoldCodeItem items[]) + const OnigUChar* p, const OnigUChar* end, + OnigCaseFoldCodeItem items[], + OnigEncoding enc) { return onigenc_get_case_fold_codes_by_str_with_map( sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1, diff --git a/enc/iso8859_16.c b/enc/iso8859_16.c index fdef54cace..90de07d006 100644 --- a/enc/iso8859_16.c +++ b/enc/iso8859_16.c @@ -105,7 +105,8 @@ static const unsigned short EncISO_8859_16_CtypeTable[256] = { static int iso_8859_16_mbc_case_fold(OnigCaseFoldType flag, - const UChar** pp, const UChar* end, UChar* lower) + const UChar** pp, const UChar* end, UChar* lower, + OnigEncoding enc) { const UChar* p = *pp; @@ -145,7 +146,7 @@ iso_8859_16_is_mbc_ambiguous(OnigCaseFoldType flag, #endif static int -iso_8859_16_is_code_ctype(OnigCodePoint code, unsigned int ctype) +iso_8859_16_is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncoding enc) { if (code < 256) return ENC_IS_ISO_8859_16_CTYPE(code, ctype); @@ -202,7 +203,8 @@ static const OnigPairCaseFoldCodes CaseFoldMap[] = { static int iso_8859_16_apply_all_case_fold(OnigCaseFoldType flag, - OnigApplyAllCaseFoldFunc f, void* arg) + OnigApplyAllCaseFoldFunc f, void* arg, + OnigEncoding enc) { return onigenc_apply_all_case_fold_with_map( sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1, @@ -211,7 +213,9 @@ iso_8859_16_apply_all_case_fold(OnigCaseFoldType flag, static int iso_8859_16_get_case_fold_codes_by_str(OnigCaseFoldType flag, - const OnigUChar* p, const OnigUChar* end, OnigCaseFoldCodeItem items[]) + const OnigUChar* p, const OnigUChar* end, + OnigCaseFoldCodeItem items[], + OnigEncoding enc) { return onigenc_get_case_fold_codes_by_str_with_map( sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1, diff --git a/enc/iso8859_2.c b/enc/iso8859_2.c index 909c70c0a3..e12962a230 100644 --- a/enc/iso8859_2.c +++ b/enc/iso8859_2.c @@ -105,7 +105,8 @@ static const unsigned short EncISO_8859_2_CtypeTable[256] = { static int mbc_case_fold(OnigCaseFoldType flag, - const UChar** pp, const UChar* end, UChar* lower) + const UChar** pp, const UChar* end, UChar* lower, + OnigEncoding enc) { const UChar* p = *pp; @@ -190,7 +191,8 @@ static const OnigPairCaseFoldCodes CaseFoldMap[] = { static int apply_all_case_fold(OnigCaseFoldType flag, - OnigApplyAllCaseFoldFunc f, void* arg) + OnigApplyAllCaseFoldFunc f, void* arg, + OnigEncoding enc) { return onigenc_apply_all_case_fold_with_map( sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1, @@ -199,7 +201,9 @@ apply_all_case_fold(OnigCaseFoldType flag, static int get_case_fold_codes_by_str(OnigCaseFoldType flag, - const OnigUChar* p, const OnigUChar* end, OnigCaseFoldCodeItem items[]) + const OnigUChar* p, const OnigUChar* end, + OnigCaseFoldCodeItem items[], + OnigEncoding enc) { return onigenc_get_case_fold_codes_by_str_with_map( sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1, @@ -207,7 +211,7 @@ get_case_fold_codes_by_str(OnigCaseFoldType flag, } static int -is_code_ctype(OnigCodePoint code, unsigned int ctype) +is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncoding enc) { if (code < 256) return ENC_IS_ISO_8859_2_CTYPE(code, ctype); diff --git a/enc/iso8859_3.c b/enc/iso8859_3.c index e201ffed06..41888952fa 100644 --- a/enc/iso8859_3.c +++ b/enc/iso8859_3.c @@ -105,7 +105,8 @@ static const unsigned short EncISO_8859_3_CtypeTable[256] = { static int mbc_case_fold(OnigCaseFoldType flag, - const UChar** pp, const UChar* end, UChar* lower) + const UChar** pp, const UChar* end, UChar* lower, + OnigEncoding enc) { const UChar* p = *pp; @@ -148,7 +149,7 @@ is_mbc_ambiguous(OnigCaseFoldType flag, const UChar** pp, const UChar* end) #endif static int -is_code_ctype(OnigCodePoint code, unsigned int ctype) +is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncoding enc) { if (code < 256) return ENC_IS_ISO_8859_3_CTYPE(code, ctype); @@ -199,7 +200,8 @@ static const OnigPairCaseFoldCodes CaseFoldMap[] = { static int apply_all_case_fold(OnigCaseFoldType flag, - OnigApplyAllCaseFoldFunc f, void* arg) + OnigApplyAllCaseFoldFunc f, void* arg, + OnigEncoding enc) { return onigenc_apply_all_case_fold_with_map( sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1, @@ -208,7 +210,9 @@ apply_all_case_fold(OnigCaseFoldType flag, static int get_case_fold_codes_by_str(OnigCaseFoldType flag, - const OnigUChar* p, const OnigUChar* end, OnigCaseFoldCodeItem items[]) + const OnigUChar* p, const OnigUChar* end, + OnigCaseFoldCodeItem items[], + OnigEncoding enc) { return onigenc_get_case_fold_codes_by_str_with_map( sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1, diff --git a/enc/iso8859_4.c b/enc/iso8859_4.c index 8cc4dca46e..0cddf19192 100644 --- a/enc/iso8859_4.c +++ b/enc/iso8859_4.c @@ -105,7 +105,8 @@ static const unsigned short EncISO_8859_4_CtypeTable[256] = { static int mbc_case_fold(OnigCaseFoldType flag, - const UChar** pp, const UChar* end, UChar* lower) + const UChar** pp, const UChar* end, UChar* lower, + OnigEncoding enc) { const UChar* p = *pp; @@ -147,7 +148,7 @@ is_mbc_ambiguous(OnigCaseFoldType flag, const UChar** pp, const UChar* end) #endif static int -is_code_ctype(OnigCodePoint code, unsigned int ctype) +is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncoding enc) { if (code < 256) return ENC_IS_ISO_8859_4_CTYPE(code, ctype); @@ -201,7 +202,8 @@ static const OnigPairCaseFoldCodes CaseFoldMap[] = { static int apply_all_case_fold(OnigCaseFoldType flag, - OnigApplyAllCaseFoldFunc f, void* arg) + OnigApplyAllCaseFoldFunc f, void* arg, + OnigEncoding enc) { return onigenc_apply_all_case_fold_with_map( sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1, @@ -210,7 +212,9 @@ apply_all_case_fold(OnigCaseFoldType flag, static int get_case_fold_codes_by_str(OnigCaseFoldType flag, - const OnigUChar* p, const OnigUChar* end, OnigCaseFoldCodeItem items[]) + const OnigUChar* p, const OnigUChar* end, + OnigCaseFoldCodeItem items[], + OnigEncoding enc) { return onigenc_get_case_fold_codes_by_str_with_map( sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1, diff --git a/enc/iso8859_5.c b/enc/iso8859_5.c index ad3242e558..187e6b14e8 100644 --- a/enc/iso8859_5.c +++ b/enc/iso8859_5.c @@ -105,7 +105,8 @@ static const unsigned short EncISO_8859_5_CtypeTable[256] = { static int mbc_case_fold(OnigCaseFoldType flag, - const UChar** pp, const UChar* end, UChar* lower) + const UChar** pp, const UChar* end, UChar* lower, + OnigEncoding enc) { const UChar* p = *pp; @@ -128,7 +129,7 @@ is_mbc_ambiguous(OnigCaseFoldType flag, const UChar** pp, const UChar* end) #endif static int -is_code_ctype(OnigCodePoint code, unsigned int ctype) +is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncoding enc) { if (code < 256) return ENC_IS_ISO_8859_5_CTYPE(code, ctype); @@ -189,7 +190,8 @@ static const OnigPairCaseFoldCodes CaseFoldMap[] = { static int apply_all_case_fold(OnigCaseFoldType flag, - OnigApplyAllCaseFoldFunc f, void* arg) + OnigApplyAllCaseFoldFunc f, void* arg, + OnigEncoding enc) { return onigenc_apply_all_case_fold_with_map( sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 0, @@ -199,7 +201,8 @@ apply_all_case_fold(OnigCaseFoldType flag, static int get_case_fold_codes_by_str(OnigCaseFoldType flag, const OnigUChar* p, const OnigUChar* end, - OnigCaseFoldCodeItem items[]) + OnigCaseFoldCodeItem items[], + OnigEncoding enc) { return onigenc_get_case_fold_codes_by_str_with_map( sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 0, diff --git a/enc/iso8859_6.c b/enc/iso8859_6.c index ab42eeed31..1681506b5d 100644 --- a/enc/iso8859_6.c +++ b/enc/iso8859_6.c @@ -68,7 +68,7 @@ static const unsigned short EncISO_8859_6_CtypeTable[256] = { }; static int -is_code_ctype(OnigCodePoint code, unsigned int ctype) +is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncoding enc) { if (code < 256) return ENC_IS_ISO_8859_6_CTYPE(code, ctype); diff --git a/enc/iso8859_7.c b/enc/iso8859_7.c index 2cbd15883b..3790c7154d 100644 --- a/enc/iso8859_7.c +++ b/enc/iso8859_7.c @@ -105,7 +105,8 @@ static const unsigned short EncISO_8859_7_CtypeTable[256] = { static int mbc_case_fold(OnigCaseFoldType flag, - const UChar** pp, const UChar* end, UChar* lower) + const UChar** pp, const UChar* end, UChar* lower, + OnigEncoding enc) { const UChar* p = *pp; @@ -136,7 +137,7 @@ is_mbc_ambiguous(OnigCaseFoldType flag, #endif static int -is_code_ctype(OnigCodePoint code, unsigned int ctype) +is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncoding enc) { if (code < 256) return ENC_IS_ISO_8859_7_CTYPE(code, ctype); @@ -185,7 +186,8 @@ static const OnigPairCaseFoldCodes CaseFoldMap[] = { static int apply_all_case_fold(OnigCaseFoldType flag, - OnigApplyAllCaseFoldFunc f, void* arg) + OnigApplyAllCaseFoldFunc f, void* arg, + OnigEncoding enc) { return onigenc_apply_all_case_fold_with_map( sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 0, @@ -194,7 +196,9 @@ apply_all_case_fold(OnigCaseFoldType flag, static int get_case_fold_codes_by_str(OnigCaseFoldType flag, - const OnigUChar* p, const OnigUChar* end, OnigCaseFoldCodeItem items[]) + const OnigUChar* p, const OnigUChar* end, + OnigCaseFoldCodeItem items[], + OnigEncoding enc) { return onigenc_get_case_fold_codes_by_str_with_map( sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 0, diff --git a/enc/iso8859_8.c b/enc/iso8859_8.c index a159d3f8f7..ba1d4864f7 100644 --- a/enc/iso8859_8.c +++ b/enc/iso8859_8.c @@ -68,7 +68,7 @@ static const unsigned short EncISO_8859_8_CtypeTable[256] = { }; static int -iso_8859_8_is_code_ctype(OnigCodePoint code, unsigned int ctype) +iso_8859_8_is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncoding enc) { if (code < 256) return ENC_IS_ISO_8859_8_CTYPE(code, ctype); diff --git a/enc/iso8859_9.c b/enc/iso8859_9.c index c31685e76d..1a51fad64a 100644 --- a/enc/iso8859_9.c +++ b/enc/iso8859_9.c @@ -105,7 +105,8 @@ static const unsigned short EncISO_8859_9_CtypeTable[256] = { static int iso_8859_9_mbc_case_fold(OnigCaseFoldType flag, - const UChar** pp, const UChar* end, UChar* lower) + const UChar** pp, const UChar* end, UChar* lower, + OnigEncoding enc) { const UChar* p = *pp; @@ -149,7 +150,7 @@ iso_8859_9_is_mbc_ambiguous(OnigCaseFoldType flag, #endif static int -iso_8859_9_is_code_ctype(OnigCodePoint code, unsigned int ctype) +iso_8859_9_is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncoding enc) { if (code < 256) return ENC_IS_ISO_8859_9_CTYPE(code, ctype); @@ -193,7 +194,8 @@ static const OnigPairCaseFoldCodes CaseFoldMap[] = { static int iso_8859_9_apply_all_case_fold(OnigCaseFoldType flag, - OnigApplyAllCaseFoldFunc f, void* arg) + OnigApplyAllCaseFoldFunc f, void* arg, + OnigEncoding enc) { return onigenc_apply_all_case_fold_with_map( sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1, @@ -202,7 +204,9 @@ iso_8859_9_apply_all_case_fold(OnigCaseFoldType flag, static int iso_8859_9_get_case_fold_codes_by_str(OnigCaseFoldType flag, - const OnigUChar* p, const OnigUChar* end, OnigCaseFoldCodeItem items[]) + const OnigUChar* p, const OnigUChar* end, + OnigCaseFoldCodeItem items[], + OnigEncoding enc) { return onigenc_get_case_fold_codes_by_str_with_map( sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1,