|
CommonLib
|
Concepts | |
| concept | any_raw_string |
| concept | any_string |
| concept | any_string_u16 |
| concept | any_string_u32 |
| concept | any_string_u8 |
| concept | any_string_w |
| concept | any_vector |
| concept | basic_string |
| concept | basic_string_view |
| concept | raw_string_c |
| concept | raw_string_u16 |
| concept | raw_string_u32 |
| concept | raw_string_u8 |
| concept | raw_string_w |
| concept | vector_like |
Typedefs | |
| template<size_t index, typename... T_args> | |
| using | get_pack_type_t = std::tuple_element_t<index, std::tuple<T_args...>> |
| template<size_t size = sizeof(size_t), bool is_signed = false> | |
| using | inferred_size_t |
| template<typename T> | |
| using | get_char_type_t = typename get_char_type<std::remove_cvref_t<T>>::type |
| template<any_string T> | |
| using | inferred_string_t = std::basic_string<get_char_type_t<T>> |
| template<any_string T> | |
| using | inferred_string_view_t = std::basic_string_view<get_char_type_t<T>> |
| template<any_string T> | |
| using | inferred_stringstream_t = std::basic_stringstream<get_char_type_t<T>> |
| template<any_string T> | |
| using | inferred_fstream_t = std::basic_fstream<std::conditional_t<std::is_same_v<get_char_type_t<T>, char8_t>, char, get_char_type_t<T>>> |
| template<any_string... T_args> | |
| using | precedent_string_t = std::tuple_element_t<get_string_type_precedence<T_args...>(), std::tuple<T_args...>> |
| template<any_string... T_args> | |
| using | pi_string_t = inferred_string_t<precedent_string_t<T_args...>> |
| template<any_string... T_args> | |
| using | pi_string_view_t = inferred_string_view_t<precedent_string_t<T_args...>> |
| template<any_string... T_args> | |
| using | pi_stringstream_t = inferred_stringstream_t<precedent_string_t<T_args...>> |
| template<encoding::encoding_type encoding> | |
| using | get_encoding_char_type_t = typename get_encoding_char_type<encoding>::type |
| template<encoding::encoding_type encoding> | |
| using | encoded_string_t = std::basic_string<get_encoding_char_type_t<encoding>> |
| template<encoding::encoding_type encoding> | |
| using | encoded_string_view_t = std::basic_string_view<get_encoding_char_type_t<encoding>> |
Functions | |
| template<class T, typename = std::enable_if_t<std::is_enum_v<T>>> | |
| constexpr bool | has_flag (T in_mask, T in_flag) |
| template<any_string T_result, any_string T_str> | |
| constexpr T_result | create_inferred_string (const T_str &in_str) |
| template<any_string... T_args> | |
| constexpr size_t | get_string_type_precedence () |
| template<any_string T> | |
| constexpr encoding::encoding_type | get_char_encoding_type () |
| constexpr encoding::encoding_type | get_native_encoding_type (encoding::encoding_type in_encoding) |
| constexpr size_t | get_encoding_char_size (encoding::encoding_type in_encoding) |
| template<any_string T> | |
| constexpr bool | is_char_encoding_type (encoding::encoding_type in_encoding) |
Variables | |
| template<typename T_first, typename... T_args> | |
| constexpr bool | is_all_same_v = std::conjunction_v<std::is_same<std::remove_cvref_t<std::decay_t<T_first>>, std::remove_cvref_t<std::decay_t<T_args>>>...> |
| template<typename, template< typename... > class T_base> | |
| constexpr bool | is_supported_template_v = false |
| template<template< typename... > class T_base, typename... T_args> | |
| constexpr bool | is_supported_template_v< T_base< T_args... >, T_base > = true |
| template<any_string T_left, any_string T_right> | |
| constexpr bool | is_same_underlying_char_type_v = std::is_same_v<get_char_type_t<T_left>, get_char_type_t<T_right>> |
| template<any_string T, encoding::encoding_type encoding> | |
| constexpr bool | is_char_encoding_type_v = is_char_encoding_type<T>(encoding) |
| using hedgedev::csl::ut::expr::encoded_string_t = std::basic_string<get_encoding_char_type_t<encoding>> |
An std::basic_string inferred from an encoding type.
| using hedgedev::csl::ut::expr::encoded_string_view_t = std::basic_string_view<get_encoding_char_type_t<encoding>> |
An std::basic_string_view inferred from an encoding type.
| using hedgedev::csl::ut::expr::get_char_type_t = typename get_char_type<std::remove_cvref_t<T>>::type |
Gets the character type of a string container.
| using hedgedev::csl::ut::expr::get_encoding_char_type_t = typename get_encoding_char_type<encoding>::type |
Gets a character type suitable for the encoding.
| using hedgedev::csl::ut::expr::get_pack_type_t = std::tuple_element_t<index, std::tuple<T_args...>> |
Gets the type of an element inside a parameter pack.
| index | The index of the element. |
| T_args | The parameter pack. |
| using hedgedev::csl::ut::expr::inferred_fstream_t = std::basic_fstream<std::conditional_t<std::is_same_v<get_char_type_t<T>, char8_t>, char, get_char_type_t<T>>> |
An std::basic_fstream inferred from any string type.
| using hedgedev::csl::ut::expr::inferred_size_t |
Gets a fundamental size type inferred from the specified size.
| size | The size of the type to get. |
| using hedgedev::csl::ut::expr::inferred_string_t = std::basic_string<get_char_type_t<T>> |
An std::basic_string inferred from any string type.
| using hedgedev::csl::ut::expr::inferred_string_view_t = std::basic_string_view<get_char_type_t<T>> |
An std::basic_string_view inferred from any string type.
| using hedgedev::csl::ut::expr::inferred_stringstream_t = std::basic_stringstream<get_char_type_t<T>> |
An std::basic_stringstream inferred from any string type.
| using hedgedev::csl::ut::expr::pi_string_t = inferred_string_t<precedent_string_t<T_args...>> |
An std::basic_string inferred from the string type with the largest character size.
| using hedgedev::csl::ut::expr::pi_string_view_t = inferred_string_view_t<precedent_string_t<T_args...>> |
An std::basic_string_view inferred from the string type with the largest character size.
| using hedgedev::csl::ut::expr::pi_stringstream_t = inferred_stringstream_t<precedent_string_t<T_args...>> |
An std::basic_stringstream inferred from the string type with the largest character size.
| using hedgedev::csl::ut::expr::precedent_string_t = std::tuple_element_t<get_string_type_precedence<T_args...>(), std::tuple<T_args...>> |
Evaluates the string type with the largest character size.
|
inlineconstexpr |
Creates a string inferred from a string literal at compile time.
| T_result | The string type to create. |
| T_str | The string type to convert from. |
| in_str | The string to create. |
|
inlineconstexpr |
Gets an encoding type suitable for the character type.
|
inlineconstexpr |
Gets the character size of the encoding type.
|
inlineconstexpr |
Gets the native endianness of the specified encoding type.
|
inlineconstexpr |
Determines which string type has the largest character size.
|
inlineconstexpr |
Checks if an enum instance has a bit flag set.
| T | The enum type. |
| in_mask | The enum instance. |
| in_flag | The flag to check. |
|
inlineconstexpr |
Checks if the encoding type matches the string type.
| T | The string type. |
| in_encoding | The encoding type. |
|
inlineconstexpr |
Checks if all of the specified template types are the same type.
| T_first | The first type. |
| T_args | The remaining types. |
|
inlineconstexpr |
Checks if the encoding type matches the string type.
| T | The string type. |
| encoding | The encoding type. |
|
inlineconstexpr |
Checks if the underlying type of two given string types are the same.
|
inlineconstexpr |
Checks if a template type supports specific template parameters.
| T_base | The template type to check. |
|
inlineconstexpr |
Checks if a template type supports specific template parameters.
| T_base | The template type to check. |
| T_args | The template parameters to check. |