|
RSTools 3.1.0
Versatile C++20 utility library
|
#include "RST/string/Compare.hpp"#include "RST/string/Trim.hpp"#include <charconv>#include <initializer_list>#include <optional>#include <string_view>#include <system_error>#include <type_traits>Go to the source code of this file.
Namespaces | |
| namespace | RST |
| Root namespace of RSTools. | |
| namespace | RST::String |
| String helpers: case, trimming, splitting, joining, replacing, parsing and hashing. | |
Functions | |
Conversions | |
| template<typename T > | |
| std::optional< T > | RST::String::parseNumber (std::string_view text, int base=10) noexcept |
Parses text as a number, or returns std::nullopt if it is not entirely one. | |
| constexpr std::optional< bool > | RST::String::parseBool (std::string_view text) noexcept |
Parses true, yes, on, 1 or false, no, off, 0, ignoring case. | |