#include <cstdint>
#include <utility>
#include <type_traits>
#include <string_view>
Go to the source code of this file.
◆ CONST_STR
#define CONST_STR |
( |
|
literal | ) |
|
Value: [] { \
struct literal_to_chars { \
static constexpr decltype(
auto)
str() \
{ \
} \
static constexpr decltype(
auto)
size() \
{ \
} \
}; \
return const_str_details::as_chars<literal_to_chars>(); \
}()
constexpr auto get_size(const char(&str)[N])
constexpr auto get_str(const char(&str)[N])
Definition at line 170 of file StringHelpers.h.
◆ compile_time_hash()
consteval uint32_t compile_time_hash |
( |
char const * |
str | ) |
|
◆ compile_time_hash_from_literal()
consteval uint32_t compile_time_hash_from_literal |
( |
const char(&) |
str[N] | ) |
|
◆ crc32()
consteval uint32_t crc32 |
( |
char const * |
str, |
|
|
int |
length |
|
) |
| |
◆ is_const_str_v()
template<typename T >
consteval bool is_const_str_v |
( |
T |
| ) |
|
◆ operator""_h()
consteval uint32_t operator""_h |
( |
const char * |
str, |
|
|
size_t |
|
|
) |
| |
◆ operator+()
template<char... chars1, char... chars2>
constexpr auto operator+ |
( |
const ConstStr< chars1... > & |
, |
|
|
const ConstStr< chars2... > & |
|
|
) |
| |
|
constexpr |
◆ runtime_crc32()
constexpr uint32_t runtime_crc32 |
( |
char const * |
str, |
|
|
int |
length |
|
) |
| |
|
constexpr |
◆ runtime_hash()
constexpr uint32_t runtime_hash |
( |
char const * |
str | ) |
|
|
constexpr |
◆ crc_table
constexpr uint32_t crc_table[256] |
|
constexpr |