Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2274)

Unified Diff: Source/wtf/text/StringImplTest.cpp

Issue 1152163005: Speed up case folding for 8-bit strings (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added a unit test Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/wtf/text/StringImpl.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/text/StringImplTest.cpp
diff --git a/Source/wtf/text/StringImplTest.cpp b/Source/wtf/text/StringImplTest.cpp
index f8c8600e3070a79bafc01a7e9efbc499fce8ddbe..0997e77cce7c951934015715a1d69f7f63f284fe 100644
--- a/Source/wtf/text/StringImplTest.cpp
+++ b/Source/wtf/text/StringImplTest.cpp
@@ -37,4 +37,13 @@ TEST(WTF, StringImplCreate8Bit)
ASSERT_TRUE(testStringImpl->is8Bit());
}
+TEST(WTF, StringImplLatin1CaseFoldTable)
+{
+ LChar symbol = 0xff;
+ while (symbol--) {
+ EXPECT_EQ(WTF::Unicode::foldCase(symbol), StringImpl::latin1CaseFoldTable[symbol]);
+ }
+}
+
+
} // namespace
« no previous file with comments | « Source/wtf/text/StringImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698