diff options
author | Billy Donahue <billy.donahue@mongodb.com> | 2020-10-09 20:50:38 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-10-13 19:30:17 +0000 |
commit | ff37b70553dbfd0b2aaeabb8a29c4d492507a9d3 (patch) | |
tree | 728b9266de70d79901eed31b0e39de0abc78cf24 /src/mongo/db/bson | |
parent | bbe604a5b3f94f78a30a76941ea89c0ca5db14d2 (diff) | |
download | mongo-ff37b70553dbfd0b2aaeabb8a29c4d492507a9d3.tar.gz |
SERVER-50917 util/ctype.h to replace <cctype> & <ctype.h> funcs
Diffstat (limited to 'src/mongo/db/bson')
-rw-r--r-- | src/mongo/db/bson/dotted_path_support.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/bson/dotted_path_support.cpp b/src/mongo/db/bson/dotted_path_support.cpp index 0595c8baf0f..8bfc0483f3b 100644 --- a/src/mongo/db/bson/dotted_path_support.cpp +++ b/src/mongo/db/bson/dotted_path_support.cpp @@ -31,13 +31,13 @@ #include "mongo/db/bson/dotted_path_support.h" -#include <cctype> #include <string> #include "mongo/bson/bsonelement.h" #include "mongo/bson/bsonmisc.h" #include "mongo/bson/bsonobj.h" #include "mongo/bson/bsonobjbuilder.h" +#include "mongo/util/ctype.h" namespace mongo { namespace dotted_path_support { @@ -74,9 +74,9 @@ void _extractAllElementsAlongPath(const BSONObj& obj, arrayComponents); } else if (e.type() == Array) { bool allDigits = false; - if (next.size() > 0 && std::isdigit(next[0])) { + if (next.size() > 0 && ctype::isDigit(next[0])) { unsigned temp = 1; - while (temp < next.size() && std::isdigit(next[temp])) + while (temp < next.size() && ctype::isDigit(next[temp])) temp++; allDigits = temp == next.size() || next[temp] == '.'; } |