summaryrefslogtreecommitdiff
path: root/inline.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2018-12-04 12:05:59 -0700
committerKarl Williamson <khw@cpan.org>2018-12-05 19:54:28 -0700
commit79a1fabd70e45bd58552df04d427f86fd6533356 (patch)
tree09b950350d10d27f2e4989d97c5105e4de67c54d /inline.h
parent421d395278133929e92518281fbc264c377cb281 (diff)
downloadperl-79a1fabd70e45bd58552df04d427f86fd6533356.tar.gz
inline.h: Clarify comment
This function works as well as possible on non-UTF-8 inputs. No need to list the UTF-8-only failures, since those aren't legal inputs.
Diffstat (limited to 'inline.h')
-rw-r--r--inline.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/inline.h b/inline.h
index 0d436564dc..0a3c47ab39 100644
--- a/inline.h
+++ b/inline.h
@@ -2347,10 +2347,10 @@ Perl_foldEQ(const char *s1, const char *s2, I32 len)
PERL_STATIC_INLINE I32
Perl_foldEQ_latin1(const char *s1, const char *s2, I32 len)
{
- /* Compare non-utf8 using Unicode (Latin1) semantics. Does not work on
- * MICRO_SIGN, LATIN_SMALL_LETTER_SHARP_S, nor
- * LATIN_SMALL_LETTER_Y_WITH_DIAERESIS, and does not check for these. Nor
- * does it check that the strings each have at least 'len' characters */
+ /* Compare non-UTF-8 using Unicode (Latin1) semantics. Works on all folds
+ * representable without UTF-8, except for LATIN_SMALL_LETTER_SHARP_S, and
+ * does not check for this. Nor does it check that the strings each have
+ * at least 'len' characters. */
const U8 *a = (const U8 *)s1;
const U8 *b = (const U8 *)s2;