AbslParseFlag overloads
Declared in <absl/flags/marshalling.h>
Parses a command-line flag string representation text into a Duration value. Duration flags must be specified in a format that is valid input for absl::ParseDuration().
bool
AbslParseFlag(
std::string_view text,
Duration* dst,
std::string* error);
» more...
Parses an absl::LogSeverity flag value. See base/log_severity.h for the full documentation.
bool
AbslParseFlag(
std::string_view text,
absl::LogSeverity* dst,
std::string* err);
» more...
Parses the command-line flag string representation text into a Time value. Time flags must be specified in a format that matches absl::RFC3339_full.
bool
AbslParseFlag(
std::string_view text,
Time* t,
std::string* error);
» more...
true upon successful parsing.true if the value was successfully parsed.| Name | Description |
|---|---|
| text | The flag string to parse. |
| dst | Output parameter receiving the parsed duration. |
| error | Output parameter receiving an error message on failure. |
| err | Output parameter that receives an error message on failure. |
| t | Output parameter receiving the parsed time. |