10.1 String

Define: String

A String is a sequence of characters.

String is a special class in Haxe. It is not considered a basic type, but it can be constructed as a literal. The binary comparison operators also behave differently when applied to strings. Haxe also supports special string interpolation syntax.

Character code

Use the .code property on a constant single-char string in order to compile its Unicode character point:

"#".code // will compile as 35
Related content