ScummVM API documentation
UTF-32 strings

Description

API for working with UTF-32 strings.

Classes

class  Common::U32String
 

Typedefs

typedef uint32 Common::u32char_type_t
 

Functions

U32String Common::operator+ (const U32String &x, const U32String &y)
 
U32String Common::operator+ (const U32String &x, U32String::value_type y)
 

Typedef Documentation

◆ u32char_type_t

typedef uint32 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.

Function Documentation

◆ operator+() [1/2]

U32String Common::operator+ ( const U32String x,
const U32String y 
)

Concatenate strings x and y.

◆ operator+() [2/2]

U32String Common::operator+ ( const U32String x,
U32String::value_type  y 
)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.