From f66c021387a7f11c059bcd6467c9fe72674303b1 Mon Sep 17 00:00:00 2001 From: Serentty Date: Sat, 29 Aug 2020 14:14:43 -0400 Subject: [PATCH] Fix comments calling surrogate halves low surrogates (#41545) I think these comments were copied and pasted and someone forgot to modify them. --- src/coreclr/src/pal/src/locale/utf8.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/coreclr/src/pal/src/locale/utf8.cpp b/src/coreclr/src/pal/src/locale/utf8.cpp index 63bfc86..9ded28e 100644 --- a/src/coreclr/src/pal/src/locale/utf8.cpp +++ b/src/coreclr/src/pal/src/locale/utf8.cpp @@ -51,7 +51,7 @@ struct Char return (c & 0xFC00) == CharUnicodeInfo::LOW_SURROGATE_START; } - // Test if the wide character is a low surrogate + // Test if the wide character is a surrogate half static bool IsSurrogate(const WCHAR c) { return (c & 0xF800) == CharUnicodeInfo::HIGH_SURROGATE_START; @@ -69,7 +69,7 @@ struct Char return IsLowSurrogate(s[index]); } - // Test if the wide character is a low surrogate + // Test if the wide character is a surrogate half static bool IsSurrogate(const WCHAR* s, int index) { return IsSurrogate(s[index]); -- 2.7.4