MCPcopy Create free account
hub / github.com/Evolving-AI-Lab/fooling / ParseBoolFlag

Function ParseBoolFlag

caffe/src/gtest/gtest-all.cpp:5902–5912  ·  view source on GitHub ↗

Parses a string for a bool flag, in the form of either "--flag=value" or "--flag". In the former case, the value is taken as true as long as it does not start with '0', 'f', or 'F'. In the latter case, the value is taken as true. On success, stores the value of the flag in *value, and returns true. On failure, returns false without changing *value.

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

Calls 1

ParseFlagValueFunction · 0.85

Tested by

no test coverage detected