string

Description

The string class stores a text value in UTF-8.

Constructors

Operators

Methods

1These functions can break a UTF-8 multibyte sequence. Consider using the equivalent function with "32" in the suffix.

String Iteration

The string class represents text in UTF-8. If you iterate a string using the for( c : s ) syntax, the loop will iterate the string byte by byte, potentially breaking code points. This can be resolved one of two ways:

Unicode Utility Methods

Related Topics

Language Types