|
RSTools 3.1.0
Versatile C++20 utility library
|
#include <cstddef>#include <cstdint>#include <string_view>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. | |
| namespace | RST::String::Literals |
String hashes as literals, to switch on strings: case "start"_hash:. | |
Functions | |
| consteval std::uint64_t | RST::String::Literals::operator""_hash (const char *str, std::size_t size) noexcept |
| Hashes a string literal at compile time. | |
Hashing | |
| constexpr std::uint64_t | RST::String::hash (std::string_view str) noexcept |
| 64-bit FNV-1a hash, usable at compile time. | |