summaryrefslogtreecommitdiff
path: root/src/common/string_util.h
diff options
context:
space:
mode:
authorGravatar lat9nq2022-05-15 18:06:33 -0400
committerGravatar lat9nq2022-05-15 18:06:33 -0400
commitffd3afcf2fec718c86d664ede2fa3801b8fc746c (patch)
tree5735e89ac2e9f58c1128c2c1ac323180b063f478 /src/common/string_util.h
parentMerge pull request #8336 from abouvier/unspirv (diff)
downloadyuzu-ffd3afcf2fec718c86d664ede2fa3801b8fc746c.tar.gz
yuzu-ffd3afcf2fec718c86d664ede2fa3801b8fc746c.tar.xz
yuzu-ffd3afcf2fec718c86d664ede2fa3801b8fc746c.zip
string_util: Add U16StringFromBuffer
Qt's QString::toStdU16String doesn't work when compiling against the latest libstdc++, at least when using Clang. This function effectively does the same thing as the aforementioned one.
Diffstat (limited to 'src/common/string_util.h')
-rw-r--r--src/common/string_util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/string_util.h b/src/common/string_util.h
index a33830aec..ce18a33cf 100644
--- a/src/common/string_util.h
+++ b/src/common/string_util.h
@@ -44,6 +44,8 @@ bool SplitPath(const std::string& full_path, std::string* _pPath, std::string* _
44 44
45#endif 45#endif
46 46
47[[nodiscard]] std::u16string U16StringFromBuffer(const u16* input, std::size_t length);
48
47/** 49/**
48 * Compares the string defined by the range [`begin`, `end`) to the null-terminated C-string 50 * Compares the string defined by the range [`begin`, `end`) to the null-terminated C-string
49 * `other` for equality. 51 * `other` for equality.