diff options
author | Dominick Allen <djallen@librehumanitas.org> | 2024-10-29 23:16:46 -0500 |
---|---|---|
committer | Dominick Allen <djallen@librehumanitas.org> | 2024-10-29 23:16:46 -0500 |
commit | 8dcb1de91e15ff7fc66279cd9cd9ad8a70f624e0 (patch) | |
tree | c73840b15a074cf37f59bc3b2eff56cde982d74f /include/fud_utf8.hpp | |
parent | 8ce397e8c0a83e49e390de9deb73d588e4931ecf (diff) |
u8 string literals
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; |