diff --git a/ChangeLog b/ChangeLog index 2d498915cf..0886597aa1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Wed Jul 6 19:54:17 2016 Martin Duerst + + * enc/iso_8859_14.c, test/ruby/enc/test_case_comprehensive.rb: + Implement non-ASCII case conversion for ISO-8859-14, by Yutaro Tada. + Wed Jul 6 19:24:48 2016 Martin Duerst * enc/iso_8859_1.c, enc/iso_8859_15.c, enc/iso_8859_16.c: diff --git a/enc/iso_8859_14.c b/enc/iso_8859_14.c index bfe374b608..31380a999b 100644 --- a/enc/iso_8859_14.c +++ b/enc/iso_8859_14.c @@ -226,6 +226,76 @@ get_case_fold_codes_by_str(OnigCaseFoldType flag, flag, p, end, items); } +#ifdef ONIG_CASE_MAPPING +static int +case_map (OnigCaseFoldType* flagP, const OnigUChar** pp, + const OnigUChar* end, OnigUChar* to, OnigUChar* to_end, + const struct OnigEncodingTypeST* enc) +{ + OnigCodePoint code; + OnigUChar *to_start = to; + OnigCaseFoldType flags = *flagP; + + while (*pp