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 <memory>
4 #include <string>
5 #include <optional>
6 
7 namespace mbgl {
8 namespace platform {
9 
10 class Collator {
11 public:
12  explicit Collator(bool caseSensitive, bool diacriticSensitive, const std::optional<std::string>& locale = std::nullopt);
13  int compare(const std::string& lhs, const std::string& rhs) const;
15  bool operator==(const Collator& other) const;
16 
17 private:
18  class Impl;
19  std::shared_ptr<Impl> impl;
20 };
21 
22 } // namespace platform
23 } // namespace mbgl
Collator(bool caseSensitive, bool diacriticSensitive, const std::optional< std::string > &locale=std::nullopt)
bool operator==(const Collator &other) const
std::string resolvedLocale() const
int compare(const std::string &lhs, const std::string &rhs) const
std::unique_ptr< Expression > string(std::unique_ptr< Expression >, std::unique_ptr< Expression > def=nullptr)
Definition: actor.hpp:15