Files
MapLibreParticleLab/include/mbgl/i18n/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

25 lines
525 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, 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