diff options
Diffstat (limited to 'include/fud_utf8.hpp')
-rw-r--r-- | include/fud_utf8.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/fud_utf8.hpp b/include/fud_utf8.hpp index 3d53feb..414352f 100644 --- a/include/fud_utf8.hpp +++ b/include/fud_utf8.hpp @@ -29,7 +29,7 @@ namespace fud { -using utf8 = unsigned char; +using utf8 = char8_t; class String; struct StringView; @@ -385,7 +385,7 @@ struct FudUtf8 { } } - [[nodiscard]] constexpr const uint8_t* data() const noexcept + [[nodiscard]] constexpr const utf8* data() const noexcept { if (!valid()) { return nullptr; |