25 lines
532 B
C++
25 lines
532 B
C++
#pragma once
|
|
|
|
#include <mbgl/util/optional.hpp>
|
|
|
|
#include <memory>
|
|
#include <string>
|
|
|
|
namespace mbgl {
|
|
namespace platform {
|
|
|
|
class Collator {
|
|
public:
|
|
explicit Collator(bool caseSensitive, bool diacriticSensitive, const optional<std::string>& locale = nullopt);
|
|
int compare(const std::string& lhs, const std::string& rhs) const;
|
|
std::string resolvedLocale() const;
|
|
bool operator==(const Collator& other) const;
|
|
|
|
private:
|
|
class Impl;
|
|
std::shared_ptr<Impl> impl;
|
|
};
|
|
|
|
} // namespace platform
|
|
} // namespace mbgl
|