![]() |
Thoth
A functional, expressive, asynchronous C++26 webdev library
|
Non owning viewer that represents Unicode encodings. More...
#include <UnicodeViewer.hpp>
Classes | |
| struct | Iterator |
Public Types | |
| using | StringViewType = std::basic_string_view< CharT > |
Public Member Functions | |
| constexpr | UnicodeViewer (StringViewType str) |
| constexpr Iterator | begin () noexcept |
| constexpr Iterator | cbegin () const noexcept |
| constexpr std::default_sentinel_t | end () noexcept |
| constexpr std::default_sentinel_t | cend () const noexcept |
Static Public Member Functions | |
| static constexpr bool | IsValid (StringViewType str) |
| Check if a string does not has invalid chars. | |
| template<UnicodeCharConcept NewCharT> | |
| static constexpr std::basic_string< NewCharT > | ConvertTo (StringViewType str) |
| Converts from one Unicode Encoding to another. | |
Non owning viewer that represents Unicode encodings.
It goes only forward. Invalid chars are replaced by UnknownChar.
| using Thoth::String::UnicodeViewer< CharT >::StringViewType = std::basic_string_view<CharT> |
|
inlineexplicitconstexpr |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
staticconstexpr |
Converts from one Unicode Encoding to another.
|
inlineconstexprnoexcept |
|
staticconstexpr |
Check if a string does not has invalid chars.