MCPcopy Create free account
hub / github.com/apache/arrow / AsBool

Function AsBool

cpp/src/arrow/flight/sql/odbc/odbc_impl/util.cc:1112–1120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1110}
1111
1112std::optional<bool> AsBool(const std::string& value) {
1113 if (boost::iequals(value, "true") || boost::iequals(value, "1")) {
1114 return true;
1115 } else if (boost::iequals(value, "false") || boost::iequals(value, "0")) {
1116 return false;
1117 } else {
1118 return std::nullopt;
1119 }
1120}
1121
1122std::optional<bool> AsBool(const Connection::ConnPropertyMap& conn_property_map,
1123 std::string_view property_name) {

Callers 3

LoadFlightSslConfigsFunction · 0.85
GetUseWideCharMethod · 0.85

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected