Using Haxe: Part 1: String

Learning Haxe

Using Haxe

Haxe is a strongly-typed multi-paradigm programming language that also supports cross-platform compiling into many different source and byte-code languages such as ActionScript 3, JavaScript, Java, C++, C#, PHP, Python, Lua, and Node.js.


String

Along with the base types of Int (Integer), Float (Floating-point), and Bool (Boolean), Haxe also supports a complex data type String, collections of letters and numbers, through its Standard Library.

As a type, it is used through defining a variable.

Properties

Once created, all strings have a length, the number of entries in the String.

Common Methods

charAt()

Returns the character at the position or empty String (“”) otherwise.

split()

Splits a String by all instances of a delimiter into an Array of results.

toLowerCase()

Returns a new String of lowercase letters.