[core] remove use of <boost/algorithm/string.hpp>

This commit is contained in:
Konstantin Käfer
2018-10-17 16:45:41 +02:00
parent c87c25cc84
commit 729eeeb3f8
4 changed files with 7 additions and 6 deletions

View File

@@ -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

View File

@@ -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