irccd
3.0.3
|
Ini utilities. More...
Functions | |
template<typename Int > | |
auto | get_uint (const ini::section &sc, std::string_view name) noexcept -> std::optional< Int > |
auto | optional_string (const ini::section &sc, std::string_view name, std::string_view def) noexcept -> std::string |
template<typename Int > | |
auto | optional_uint (const ini::section &sc, std::string_view name, Int def) noexcept -> std::optional< Int > |
Ini utilities.
|
inlinenoexcept |
Get an unsigned integer from the configuration section.
sc | the section |
name | the option name |
|
inlinenoexcept |
Get an optional string or the default value if not given.
sc | the section |
name | the option name |
def | the default value |
|
inlinenoexcept |
Get an optional unsigned integer from the configuration section.
sc | the section |
name | the option name |
def | the default value |