Function urcl::parseBoolean
Defined in File helpers.h
Function Documentation
-
bool urcl::parseBoolean(const std::string &str)
Parses a boolean value from a string.
The string can be one of
true, True, TRUE
on, On, ON
yes, Yes, YES
1
false, False, FALSE
off, Off, OFF
no, No, NO
0
- Parameters:
str – string to be parsed
- Throws:
urcl::UrException – If the string doesn’t match one of the options
- Returns:
The boolean representation of the string