Files
AnyPS5/core/libs/prx/libSceIcu/JavaUtf8.hpp
T
MarcZX10 730145d38a feat(libSceIcu): implement u_strToJavaModifiedUTF8
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.
2026-11-05 21:54:13 +00:00

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*);
}