MapLibre Native Core
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
collator.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include <mbgl/i18n/collator.hpp>
4 
5 #include <string>
6 #include <optional>
7 
8 namespace mbgl {
9 namespace style {
10 namespace expression {
11 
12 class Collator {
13 public:
14  Collator(bool caseSensitive, bool diacriticSensitive, const std::optional<std::string>& locale = std::nullopt);
15 
16  bool operator==(const Collator& other) const;
17 
18  int compare(const std::string& lhs, const std::string& rhs) const;
19 
21 private:
22  platform::Collator collator;
23 };
24 
25 } // namespace expression
26 } // namespace style
27 } // namespace mbgl
int compare(const std::string &lhs, const std::string &rhs) const
std::string resolvedLocale() const
bool operator==(const Collator &other) const
Collator(bool caseSensitive, bool diacriticSensitive, const std::optional< std::string > &locale=std::nullopt)
std::unique_ptr< Expression > string(std::unique_ptr< Expression >, std::unique_ptr< Expression > def=nullptr)
Definition: actor.hpp:15