summaryrefslogtreecommitdiff
path: root/source/fud_utf8.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/fud_utf8.cpp')
-rw-r--r--source/fud_utf8.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/source/fud_utf8.cpp b/source/fud_utf8.cpp
index 50b5d31..0804531 100644
--- a/source/fud_utf8.cpp
+++ b/source/fud_utf8.cpp
@@ -33,15 +33,16 @@ FudUtf8 FudUtf8::fromString(const String& fudString, size_t index) noexcept
return fromStringView(StringView{fudString}, index);
}
-FudUtf8 FudUtf8::fromStringView(const StringView& view, size_t index) noexcept
-{
- return fromStringView(StringView{view}, index);
-}
+// FudUtf8 FudUtf8::fromStringView(const StringView& view, size_t index) noexcept
+// {
+// return fromStringView(StringView{view}, index);
+// }
-FudUtf8 FudUtf8::fromStringView(StringView&& view, size_t index) noexcept
+FudUtf8 FudUtf8::fromStringView(StringView view, size_t index) noexcept
{
- auto len = view.length();
- const auto* vData = view.data();
+ auto viewLocal{view};
+ auto len = viewLocal.length();
+ const auto* vData = viewLocal.data();
if (vData == nullptr) {
return invalidAscii();
}