|
HikoGUI
A low latency retained GUI
|
#include <hikogui/char_maps/char_converter.hpp>
Public Types | |
| using | from_encoder_type = char_map<From> |
| using | to_encoder_type = char_map<To> |
| using | from_char_type = from_encoder_type::char_type |
| using | to_char_type = to_encoder_type::char_type |
| using | from_string_type = std::basic_string<from_char_type> |
| using | to_string_type = std::basic_string<to_char_type> |
Public Member Functions | |
| template<typename OutRange , typename InRange > | |
| constexpr OutRange | convert (InRange &&src) const noexcept |
| Convert text between the given encodings. | |
| template<typename OutRange , typename It , typename EndIt > | |
| constexpr OutRange | convert (It first, EndIt last) const noexcept |
| Convert text between the given encodings. | |
| template<typename OutRange = std::basic_string<to_char_type>> | |
| OutRange | read (void const *ptr, size_t size, std::endian endian=std::endian::native) noexcept |
| Read text from a byte array. | |
| template<typename InRange > | |
| constexpr to_string_type | operator() (InRange &&src) const noexcept |
| Convert text between the given encodings. | |
A converter between character encodings.
|
inlineconstexprnoexcept |
Convert text between the given encodings.
| OutRange | The output type |
| src | The text to be converted. |
|
inlineconstexprnoexcept |
Convert text between the given encodings.
| OutRange | The output type |
| first | An iterator pointing to the first character to be converted. |
| last | An iterator pointing one beyond the last character to be converted, or a sentinel. |
|
inlineconstexprnoexcept |
Convert text between the given encodings.
| src | The text to be converted. |
|
inlinenoexcept |
Read text from a byte array.
| OutRange | The output type |
| ptr | A pointer to a byte array containing the text in the From encoding. |
| size | The number of bytes in the array. |
| endian | The endianness of characters in the array, used as a hint. |