API for working with UTF-32 strings.
Classes | |
class | Common::U32String |
Typedefs | |
typedef char32_t | Common::u32char_type_t |
Functions | |
U32String | Common::operator+ (const U32String &x, const U32String &y) |
U32String | Common::operator+ (const U32String &x, U32String::value_type y) |
U32String | Common::toPrintable (const U32String &src, bool keepNewLines=true) |
template<class... TParam> | |
static U32String | Common::U32String::format (const U32String &fmt, TParam... param) |
typedef char32_t Common::u32char_type_t |
A simple string class for UTF-32 strings in ScummVM. The main intention behind this class is to feature a simple way of displaying UTF-32 strings through the Graphics::Font API.
Note that operations like equals, deleteCharacter, toUppercase, etc. are only simplified convenience operations. They might not fully work as you would expect for a proper UTF-32 string class.
The presence of \0 characters in the string will cause undefined behavior in some operations.
Concatenate strings x
and y
.
Append the given y
character to the given x
string.
Converts string with all non-printable characters properly escaped with use of C++ escape sequences. Unlike the String version, this does not escape characters with codepoints > 127.
src | The source string. |
keepNewLines | Whether keep newlines or convert them to ' ', default: true. |