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

29 lines
566 B
C++

#pragma once
#include <mbgl/i18n/collator.hpp>
#include <string>
#include <optional>
namespace mbgl {
namespace style {
namespace expression {
class Collator {
public:
Collator(bool caseSensitive, bool diacriticSensitive, const std::optional<std::string>& locale = std::nullopt);
bool operator==(const Collator& other) const;
int compare(const std::string& lhs, const std::string& rhs) const;
std::string resolvedLocale() const;
private:
platform::Collator collator;
};
} // namespace expression
} // namespace style
} // namespace mbgl