summaryrefslogtreecommitdiff
path: root/src/mongo/db/fts/unicode
diff options
context:
space:
mode:
authorBilly Donahue <billy.donahue@mongodb.com>2020-10-09 20:50:38 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-10-13 19:30:17 +0000
commitff37b70553dbfd0b2aaeabb8a29c4d492507a9d3 (patch)
tree728b9266de70d79901eed31b0e39de0abc78cf24 /src/mongo/db/fts/unicode
parentbbe604a5b3f94f78a30a76941ea89c0ca5db14d2 (diff)
downloadmongo-ff37b70553dbfd0b2aaeabb8a29c4d492507a9d3.tar.gz
SERVER-50917 util/ctype.h to replace <cctype> & <ctype.h> funcs
Diffstat (limited to 'src/mongo/db/fts/unicode')
-rw-r--r--src/mongo/db/fts/unicode/string_test.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mongo/db/fts/unicode/string_test.cpp b/src/mongo/db/fts/unicode/string_test.cpp
index a2943877b28..00931a22a10 100644
--- a/src/mongo/db/fts/unicode/string_test.cpp
+++ b/src/mongo/db/fts/unicode/string_test.cpp
@@ -29,11 +29,10 @@
#include "mongo/platform/basic.h"
-#include <cctype>
-
#include "mongo/db/fts/unicode/string.h"
#include "mongo/shell/linenoise_utf8.h"
#include "mongo/unittest/unittest.h"
+#include "mongo/util/ctype.h"
#include "mongo/util/text.h"
#ifdef MSC_VER
@@ -114,7 +113,7 @@ TEST(UnicodeString, CaseFolding) {
// Test all ascii chars.
for (unsigned char ch = 0; ch <= 0x7F; ch++) {
const auto upper = std::string(1, ch);
- const auto lower = std::string(1, std::tolower(ch));
+ const auto lower = std::string(1, ctype::toLower(ch));
if (ch) { // String's constructor doesn't handle embedded NUL bytes.
ASSERT_EQUALS(lower, String(upper).toLowerToBuf(&buf, kNormal));
}