Files
MapLibreParticleLab/include/mbgl/style/expression/collator.hpp
Alexander Shalamov 9c8295c6a6 [core][android][darwin] Move platform specific Collator impls from expression
Platform specific Collator implementations should not be part of an expression APIs.
2019-09-26 10:55:47 +03:00

28 lines
557 B
C++

#pragma once
#include <mbgl/i18n/collator.hpp>
#include <mbgl/util/optional.hpp>
#include <string>
namespace mbgl {
namespace style {
namespace expression {
class Collator {
public:
Collator(bool caseSensitive, bool diacriticSensitive, optional<std::string> locale = {});
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