3#ifdef VIDEO_STANDARD_PAL
18int Utf8Size(
const char *pszText);
30void Utf8Encode(
char *pszOut,
const char *pszText,
int nSize);
43int Utf8DecodedSize(
const char *pszUtf8);
57void Utf8Decode(
char *pszOut,
const char *pszUtf8,
int nSize);
67inline String Utf8String(
const char *pszText) {
68 const int nSize = Utf8Size(pszText);
69 auto pszBuffer = std::make_unique<char[]>(nSize);
70 Utf8Encode(pszBuffer.get(), pszText, nSize);
71 String text(pszBuffer.get());
83inline String Utf8DecodedString(
const char *pszUtf8) {
84 const int nSize = Utf8DecodedSize(pszUtf8);
85 auto pszBuffer = std::make_unique<char[]>(nSize);
86 Utf8Decode(pszBuffer.get(), pszUtf8, nSize);
87 String text(pszBuffer.get());
Growable text buffer that is also a PrnStream.
Definition string.h:19