|
HikoGUI
A low latency retained GUI
|
Static Public Member Functions | |
| template<typename T > | |
| static constexpr T | int_from_char (char c) noexcept |
| template<typename T > | |
| static constexpr char | char_from_int (T x) noexcept |
| template<typename ItIn , typename ItOut > | |
| static constexpr void | encode (ItIn ptr, ItIn last, ItOut output) |
| Encode bytes into a string. | |
| template<typename ItIn > | |
| static std::string | encode (ItIn first, ItIn last) noexcept |
| Encode bytes into a string. | |
| static constexpr std::string | encode (std::span< std::byte const > bytes) noexcept |
| Encode bytes into a string. | |
| template<typename ItIn , typename ItOut > | |
| static constexpr ItIn | decode (ItIn ptr, ItIn last, ItOut output) |
| Decodes a UTF-8 string into bytes. | |
| static bstring | decode (std::string_view str) |
Static Public Attributes | |
| static constexpr detail::base_n_alphabet | alphabet = Alphabet |
| static constexpr char | padding_char = alphabet.padding_char |
| static constexpr long long | radix = alphabet.radix |
| static constexpr long long | bytes_per_block = BytesPerBlock |
| static constexpr long long | chars_per_block = CharsPerBlock |
|
inlinestaticconstexpr |
Decodes a UTF-8 string into bytes.
| ptr | An iterator inside a UTF-8 string to the start of a base-n encoded data. |
| last | An iterator beyond the encoded data. |
| output | An output iterator to a std::byte buffer. |
|
inlinestaticnoexcept |
Encode bytes into a string.
| first | An iterator pointing to the first byte to encode. |
| last | An iterator pointing to one beyond the last byte to encode. |
|
inlinestaticconstexpr |
Encode bytes into a string.
| ptr | Pointer |
| last | Beyond the last byte. |
| output |
|
inlinestaticconstexprnoexcept |
Encode bytes into a string.
| bytes | A span of bytes to encode. |