#include "function/string/vector_string_functions.h" namespace lbug { namespace function { using namespace lbug::common; struct InitCap { static void operation(string_t& operand, string_t& result, ValueVector& resultVector) { Lower::operation(operand, result, resultVector); int originalSize = 0, newSize = 0; BaseLowerUpperFunction::convertCharCase(reinterpret_cast(result.getDataUnsafe()), reinterpret_cast(result.getData()), 0 /* charPos */, true /* toUpper */, originalSize, newSize); } }; function_set InitCapFunction::getFunctionSet() { function_set functionSet; functionSet.emplace_back(make_unique(name, std::vector{LogicalTypeID::STRING}, LogicalTypeID::STRING, ScalarFunction::UnaryStringExecFunction)); return functionSet; } } // namespace function } // namespace lbug