Documentation

wstring

Class

The wide string class used primarily in the game for unicode strings. Since Trackmania (2020) the game switched to UTF-8 by default, making wstring essentially the same as string.

Methods

Operator obj = x
Returns wstring
Operator string x = obj
Returns string

Returns true if the string starts with the given substring.

Returns bool

Returns true if the string ends with the given substring.

Returns bool

Returns true if the string contains the given substring.

Returns bool

Returns the remainder of the string after the given index. For example; for the string "Hello", SubStr(1) returns "ello".

Returns wstring

Returns a portion of the string from the index and length. For example; for the string "Hello", SubStr(1, 3) returns "ell".

Returns wstring
Property obj.Length

The length of the string in bytes. On games older than Trackmania (2020), this returns the length of the string in characters.

Returns int