An abstract that loosely represents a char.

The reason i say "loosely" is because its not actually a real char, but an abstraction over String to help you manipulate/get information about characters

When used with CharTools, it provides some great tooling to work with characters & string

Static variables

staticcharCode:Null<Int>

Every single character has a code that associates with it.

The charCode property is the code corresponding to this Char.

Changing this value will also change the char.

staticcharacter:String

A String representation of this Char.

Chars are at their core just a fancy, one-character String, so you should be able to use the actual char to represent a string too.

Static methods

@:fromstaticinlinefromInt(int:Int):Char

@:fromstaticinlinefromString(string:String):Char

@:tostaticinlinetoInt(this:String):Int

@:tostaticinlinetoString(this:String):String