Home
last modified time | relevance | path

Searched refs:from_env (Results 1 – 2 of 2) sorted by relevance

/system/testing/gtest_extras/
DOptions.cpp76 static void PrintError(const std::string& arg, std::string msg, bool from_env) { in PrintError() argument
77 if (from_env) { in PrintError()
90 static bool GetNumeric(const char* arg, const char* value, IntType* numeric_value, bool from_env) { in GetNumeric() argument
99 PrintError(arg, std::string("value overflows (") + value + ")", from_env); in GetNumeric()
102 from_env); in GetNumeric()
116 bool Options::SetNumeric(const std::string& arg, const std::string& value, bool from_env) { in SetNumeric() argument
118 if (!GetNumeric<uint64_t>(arg.c_str(), value.c_str(), numeric, from_env)) { in SetNumeric()
122 PrintError(arg, "requires a number greater than zero.", from_env); in SetNumeric()
128 bool Options::SetNumericEnvOnly(const std::string& arg, const std::string& value, bool from_env) { in SetNumericEnvOnly() argument
129 if (!from_env) { in SetNumericEnvOnly()
[all …]
DOptions.h79 bool from_env = false);