Files
MapLibreParticleLab/include/mbgl/i18n/collator.hpp
Bart Louwers 71f6da2722 Add clang-format (#1086)
Co-authored-by: mwilsnd <mwilsnd@gmail.com>
2023-05-01 16:57:37 +02:00

26 lines
571 B
C++

#pragma once
#include <memory>
#include <string>
#include <optional>
namespace mbgl {
namespace platform {
class Collator {
public:
explicit Collator(bool caseSensitive,
bool diacriticSensitive,
const std::optional<std::string>& locale = std::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