MCPcopy Create free account
hub / github.com/apache/cloudberry / ToBool

Function ToBool

gpcontrib/gpcloud/src/s3utils.cpp:215–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213}
214
215bool ToBool(string str) {
216 std::transform(str.begin(), str.end(), str.begin(), ::tolower);
217 if ((str == "yes") || (str == "true") || (str == "y") || (str == "t") || (str == "1")) {
218 return true;
219 } else {
220 return false;
221 }
222}
223
224const signed char UriMapping[256] = {
225 /* 0 1 2 3 4 5 6 7

Callers 1

GetBoolMethod · 0.85

Calls 3

transformClass · 0.50
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected