mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-11-07 13:39:55 +00:00
Convert UTF-16 to Java modified UTF-8 following ICU 78.1 ustrtrns.cpp. Every code unit is encoded on its own, so surrogates become three bytes each and U+0000 becomes C0 80. Output stops at the first unit that does not fit and the remaining units are only counted for the preflight length; the terminator and warning or overflow codes follow u_terminateChars. The sceIcuUnknown stub with this NID is removed.
9 lines
411 B
C++
9 lines
411 B
C++
#pragma once
|
|
#include "prx/libc/include/general/VabiMacros.hpp"
|
|
#include <cstdint>
|
|
|
|
extern "C" {
|
|
char16_t* APS5_VABI u_strFromJavaModifiedUTF8WithSub_nid_postfix(char16_t*, std::int32_t, std::int32_t*, const char*, std::int32_t, std::int32_t, std::int32_t*, std::int32_t*);
|
|
char* APS5_VABI u_strToJavaModifiedUTF8_nid_postfix(char*, std::int32_t, std::int32_t*, const char16_t*, std::int32_t, std::int32_t*);
|
|
}
|