MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / castStringToBool

Function castStringToBool

src/function/cast_string_non_nested_functions.cpp:58–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58void castStringToBool(const char* input, uint64_t len, bool& result) {
59 if (!tryCastToBool(input, len, result)) {
60 throw ConversionException{
61 std::format("Value {} is not a valid boolean", std::string{input, (size_t)len})};
62 }
63}
64
65template<>
66bool TryCastStringToTimestamp::tryCast<timestamp_ns_t>(const char* input, uint64_t len,

Callers 2

castMethod · 0.85
operationMethod · 0.85

Calls 1

tryCastToBoolFunction · 0.85

Tested by

no test coverage detected