mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
make-charset: fixed compatibility with Poco 1.3.6.
This commit is contained in:
parent
156533bb1c
commit
3eac786b93
@ -243,6 +243,7 @@ Encoding::buildHead (std::ostream& _os, const std::string& _class_name) const
|
||||
_os << "\t\tbool isA(const std::string& encodingName) const;\n";
|
||||
_os << "\t\tconst CharacterMap& characterMap() const;\n";
|
||||
_os << "\t\tint convert(const unsigned char* bytes) const;\n";
|
||||
_os << "\t\tint queryConvert(const unsigned char* bytes, int length) const;\n";
|
||||
_os << "\t\tint convert(int ch, unsigned char* bytes, int length) const;\n";
|
||||
_os << "\t};\n";
|
||||
_os << "}\n\n";
|
||||
@ -325,6 +326,11 @@ Encoding::buildBody (std::ostream& _os, const std::string& _class_name) const
|
||||
"{\n"
|
||||
"\treturn _map[*bytes];\n"
|
||||
"}\n\n\n";
|
||||
|
||||
_os << "int Poco::" << _class_name << "::queryConvert(const unsigned char* bytes, int length) const\n"
|
||||
"{\n"
|
||||
"\treturn _map[*bytes];\n"
|
||||
"}\n\n\n";
|
||||
|
||||
_os << "int Poco::" << _class_name << "::convert(int ch, unsigned char* bytes, int length) const\n"
|
||||
"{\n";
|
||||
|
Loading…
Reference in New Issue
Block a user