Skip to content
Snippets Groups Projects
Commit 14a04aaf authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Small opt

parent b39a0be4
No related branches found
No related tags found
No related merge requests found
...@@ -716,7 +716,7 @@ std::string utf8str_removeCRLF(const std::string& utf8str) ...@@ -716,7 +716,7 @@ std::string utf8str_removeCRLF(const std::string& utf8str)
return out; return out;
} }
llwchar utf8str_to_wchar(const std::string& utf8str, size_t offset, size_t length) llwchar utf8str_to_wchar(std::string_view utf8str, size_t offset, size_t length)
{ {
switch (length) switch (length)
{ {
......
...@@ -777,7 +777,7 @@ LL_COMMON_API std::string mbcsstring_makeASCII(const std::string& str); ...@@ -777,7 +777,7 @@ LL_COMMON_API std::string mbcsstring_makeASCII(const std::string& str);
LL_COMMON_API std::string utf8str_removeCRLF(const std::string& utf8str); LL_COMMON_API std::string utf8str_removeCRLF(const std::string& utf8str);
LL_COMMON_API llwchar utf8str_to_wchar(const std::string& utf8str, size_t offset, size_t length); LL_COMMON_API llwchar utf8str_to_wchar(std::string_view utf8str, size_t offset, size_t length);
LL_COMMON_API std::string utf8str_showBytesUTF8(const std::string& utf8str); LL_COMMON_API std::string utf8str_showBytesUTF8(const std::string& utf8str);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment