diff options
Diffstat (limited to 'include/mbgl/style/expression/collator.hpp')
-rw-r--r-- | include/mbgl/style/expression/collator.hpp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/include/mbgl/style/expression/collator.hpp b/include/mbgl/style/expression/collator.hpp new file mode 100644 index 0000000000..2a79e55556 --- /dev/null +++ b/include/mbgl/style/expression/collator.hpp @@ -0,0 +1,29 @@ +#pragma once + +#include <mbgl/util/feature.hpp> +#include <mbgl/util/optional.hpp> + +#include <string> +#include <memory> + +namespace mbgl { +namespace style { +namespace expression { + +class Collator { +public: + Collator(bool caseSensitive, bool diacriticSensitive, optional<std::string> locale = {}); + + bool operator==(const Collator& other) const; + + int compare(const std::string& lhs, const std::string& rhs) const; + + std::string resolvedLocale() const; +private: + class Impl; + std::shared_ptr<Impl> impl; +}; + +} // namespace expression +} // namespace style +} // namespace mbgl |