#include #include #include namespace DB { struct ExtractBool { using ResultType = UInt8; static UInt8 extract(const UInt8 * begin, const UInt8 * end) { return begin + 4 <= end && 0 == strncmp(reinterpret_cast(begin), "true", 4); } }; struct NameVisitParamExtractBool { static constexpr auto name = "visitParamExtractBool"; }; using FunctionVisitParamExtractBool = FunctionsStringSearch>; struct NameSimpleJSONExtractBool { static constexpr auto name = "simpleJSONExtractBool"; }; using FunctionSimpleJSONExtractBool = FunctionsStringSearch>; REGISTER_FUNCTION(VisitParamExtractBool) { factory.registerFunction(); factory.registerFunction(); } }