ClickHouse/dbms/src/Columns/Collator.h
2017-11-20 08:59:58 +03:00

22 lines
409 B
C++

#pragma once
#include <string>
#include <boost/noncopyable.hpp>
struct UCollator;
class Collator : private boost::noncopyable
{
public:
explicit Collator(const std::string & locale_);
~Collator();
int compare(const char * str1, size_t length1, const char * str2, size_t length2) const;
const std::string & getLocale() const;
private:
std::string locale;
UCollator * collator;
};