mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-27 04:08:37 +01:00
Add a couple of emoji to UI in debug mode
This commit is contained in:
1 parent
ea659319b2
commit
a477ca3f05
4 files changed
+15
-2
No files matched your search
@@ -558,6 +558,12 @@ std::u16string ConvertUTF8ToUCS2(const std::string &source) {
|
||||
return dst;
|
||||
}
|
||||
|
||||
std::string CodepointToUTF8(uint32_t codePoint) {
|
||||
char temp[16]{};
|
||||
UTF8::encode(temp, codePoint);
|
||||
return std::string(temp);
|
||||
}
|
||||
|
||||
#ifndef _WIN32
|
||||
|
||||
// Replacements for the Win32 wstring functions. Not to be used from emulation code!
|
||||
|
||||
@@ -89,6 +89,8 @@ bool UTF8StringHasNonASCII(const char *utf8string);
|
||||
// Removes overlong encodings and similar.
|
||||
std::string SanitizeUTF8(const std::string &utf8string);
|
||||
|
||||
std::string CodepointToUTF8(uint32_t codePoint);
|
||||
|
||||
|
||||
// UTF8 to Win32 UTF-16
|
||||
// Should be used when calling Win32 api calls
|
||||
|
||||
Reference in new issue
Block a user