diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2018-10-17 16:45:41 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2018-10-23 12:23:40 +0200 |
commit | 729eeeb3f821981cc5d3c9e06ffbb85ed4d857d7 (patch) | |
tree | 896c896e65736d328f744d73a765e5730e0bafeb /src/mbgl/util | |
parent | c87c25cc8407c33e4d88390836a9a52a1626c19e (diff) | |
download | qtlocation-mapboxgl-729eeeb3f821981cc5d3c9e06ffbb85ed4d857d7.tar.gz |
[core] remove use of <boost/algorithm/string.hpp>
Diffstat (limited to 'src/mbgl/util')
-rw-r--r-- | src/mbgl/util/i18n.cpp | 4 | ||||
-rw-r--r-- | src/mbgl/util/i18n.hpp | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/mbgl/util/i18n.cpp b/src/mbgl/util/i18n.cpp index 0fa6122673..66c9e027a7 100644 --- a/src/mbgl/util/i18n.cpp +++ b/src/mbgl/util/i18n.cpp @@ -618,6 +618,10 @@ bool isStringInSupportedScript(const std::string& input) { return true; } +bool isWhitespace(char16_t chr) { + return chr == u' ' || chr == u'\t' || chr == u'\n' || chr == u'\v' || chr == u'\f' || chr == u'\r'; +} + } // namespace i18n } // namespace util } // namespace mbgl diff --git a/src/mbgl/util/i18n.hpp b/src/mbgl/util/i18n.hpp index a74215a134..c7544f443b 100644 --- a/src/mbgl/util/i18n.hpp +++ b/src/mbgl/util/i18n.hpp @@ -75,6 +75,8 @@ char16_t verticalizePunctuation(char16_t chr); bool isStringInSupportedScript(const std::string& input); +bool isWhitespace(char16_t chr); + } // namespace i18n } // namespace util } // namespace mbgl |