AbslParseFlag overloads
Synopses
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);
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);
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);
Return Value
-
trueupon successful parsing. -
trueif the value was successfully parsed.
Parameters
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. |
Created with MrDocs