From 32b7e0208776b213dc1b137f004c274456e07de9 Mon Sep 17 00:00:00 2001 From: Sami Vaarala Date: Tue, 12 Aug 2014 16:41:02 +0300 Subject: [PATCH] Comment trivia for Unicode caseconv --- src/duk_unicode_support.c | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/duk_unicode_support.c b/src/duk_unicode_support.c index 0a7c139d..327ece89 100644 --- a/src/duk_unicode_support.c +++ b/src/duk_unicode_support.c @@ -795,11 +795,12 @@ static duk_codepoint_t duk__case_transform_helper(duk_hthread *thr, * in the caseconv bitstream: hardcoded rules in C */ if (uppercase) { - /* XXX: turkish / azeri not implemented */ + /* XXX: turkish / azeri */ } else { /* - * Final sigma context specific rule. This is a rather tricky rule - * and this handling is probably not 100% correct now. + * Final sigma context specific rule. This is a rather tricky + * rule and this handling is probably not 100% correct now. + * The rule is not locale/language specific so it is supported. */ if (cp == 0x03a3L && /* U+03A3 = GREEK CAPITAL LETTER SIGMA */ @@ -817,12 +818,6 @@ static duk_codepoint_t duk__case_transform_helper(duk_hthread *thr, /* XXX: lithuanian not implemented */ /* XXX: lithuanian, explicit dot rules */ /* XXX: turkish / azeri, lowercase rules */ -#if 0 - if (0 /* language == 'lt' */ && - cp == 0x0307L) { /* U+0307 = COMBINING DOT ABOVE */ - goto nochar; - } -#endif } /* 1:1 or special conversions, but not locale/context specific: script generated rules */ @@ -1011,4 +1006,3 @@ duk_uint16_t duk_unicode_re_ranges_not_wordchar[10] = { }; #endif /* DUK_USE_REGEXP_SUPPORT */ -