Documentation

Text

Namespace

Text parsing and formatting.

Parses the given string as an integer.

Returns int

Parses the given string as a 64 bit integer.

Returns int64

Parses the given string as an unsigned integer.

Returns uint

Parses the given string as a 64 bit unsigned integer.

Returns uint64

Parses the given string as a float.

Returns float

Parses the given string as a double.

Returns double

Parses the given string as a hexadecimal color such as "#FF0000".

Returns vec4

Tries to parse the given string as an integer. This will return true only if the string was parsed entirely and was not empty.

Returns bool

Tries to parse the given string as a 64 bit integer. This will return true only if the string was parsed entirely and was not empty.

Returns bool

Tries to parse the given string as an unsigned integer. This will return true only if the string was parsed entirely and was not empty.

Returns bool

Tries to parse the given string as a 64 bit unsigned integer. This will return true only if the string was parsed entirely and was not empty.

Returns bool

Parses the given string as a float. This will return true only if the string was parsed entirely and was not empty.

Returns bool

Parses the given string as a double. This will return true only if the string was parsed entirely and was not empty.

Returns bool

Parses the given string as a hexadecimal color such as "#FF0000". This will return true only if the string was parsed entirely and was not empty.

Returns bool

Formats a pointer to its more representative hexadecimal format, for example: 0x12345678

Returns string

Formats a color in Maniaplanet-style color formatting, for example: "$f00"

Returns string

Formats a color in Openplanet-style UI color formatting, for example: "\$f00"

Returns string

Strips all Maniaplanet-style formatting codes from a string.

Returns string

Strips all non-color Maniaplanet-style formatting codes from a string.

Returns string

Takes a string, converts Maniaplanet-style formatting codes and turns them into Openplanet UI formatting codes. This will also get rid of all Openplanet-unsupported formatting codes.

Returns string

Strips all Openplanet-supported formatting codes from a string.

Returns string

Encodes a string so that all characters are encoded as a sequence of hexadecimal bytes. Note that if you want to encode binary data, you should probably use MemoryBuffer::ReadToHex instead.

Returns string

Decodes a string where characters are encoded as a sequence of hexadecimal bytes. Note that if you want to decode binary data, you should probably use MemoryBuffer::WriteFromHex instead.

Returns string

Encode a string as a base64 encoded string. Note that if you want to encode binary data, you should probably use MemoryBuffer::ReadToBase64 instead.

Returns string

Decode a base64 encoded string to a string. Note that if you want to decode binary data, you should probably use MemoryBuffer::WriteFromBase64 instead.

Returns string