MCPcopy Create free account
hub / github.com/BYVoid/OpenCC / ParseDoubleFlag

Function ParseDoubleFlag

deps/google-benchmark/src/commandlineflags.cc:235–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233}
234
235BENCHMARK_EXPORT
236bool ParseDoubleFlag(const char* str, const char* flag, double* value) {
237 // Gets the value of the flag as a string.
238 const char* const value_str = ParseFlagValue(str, flag, false);
239
240 // Aborts if the parsing failed.
241 if (value_str == nullptr) return false;
242
243 // Sets *value to the value of the flag.
244 return ParseDouble(std::string("The value of flag --") + flag, value_str,
245 value);
246}
247
248BENCHMARK_EXPORT
249bool ParseStringFlag(const char* str, const char* flag, std::string* value) {

Callers 1

ParseCommandLineFlagsFunction · 0.85

Calls 2

ParseDoubleFunction · 0.85
ParseFlagValueFunction · 0.70

Tested by

no test coverage detected