Lines Matching refs:value

41 // If the variable exists, returns IsTruthyFlagValue() value;  if not,
42 // returns the given default value.
49 // If the variable exists, returns ParseInt32() value; if not, returns
50 // the given default value.
58 // the given default value.
65 // If variable exists, returns its value; if not, returns
66 // the given default value.
73 // If variable exists, returns its value; if not, returns
74 // the given default value.
80 // "--flag=value" or "--flag".
82 // In the former case, the value is taken as true if it passes IsTruthyValue().
84 // In the latter case, the value is taken as true.
86 // On success, stores the value of the flag in *value, and returns
87 // true. On failure, returns false without changing *value.
89 bool ParseBoolFlag(const char* str, const char* flag, bool* value);
91 // Parses a string for an Int32 flag, in the form of "--flag=value".
93 // On success, stores the value of the flag in *value, and returns
94 // true. On failure, returns false without changing *value.
96 bool ParseInt32Flag(const char* str, const char* flag, int32_t* value);
98 // Parses a string for a Double flag, in the form of "--flag=value".
100 // On success, stores the value of the flag in *value, and returns
101 // true. On failure, returns false without changing *value.
103 bool ParseDoubleFlag(const char* str, const char* flag, double* value);
105 // Parses a string for a string flag, in the form of "--flag=value".
107 // On success, stores the value of the flag in *value, and returns
108 // true. On failure, returns false without changing *value.
110 bool ParseStringFlag(const char* str, const char* flag, std::string* value);
112 // Parses a string for a kvpairs flag in the form "--flag=key=value,key=value"
114 // On success, stores the value of the flag in *value and returns true. On
115 // failure returns false, though *value may have been mutated.
118 std::map<std::string, std::string>* value);
124 // Returns true unless value starts with one of: '0', 'f', 'F', 'n' or 'N', or
125 // some non-alphanumeric character. Also returns false if the value matches
127 // returns true if value is the empty string.
129 bool IsTruthyFlagValue(const std::string& value);