| Package | system |
| Class | public class Char |
| Inheritance | Char Object |
Note: Very basic implementation for now based on ASCII and so http://www.ietf.org/rfc/rfc20.txt
later we should connect it to Unicode class and Unicode cateogories or maybe do another CharUTF class.
| Property | Defined By | ||
|---|---|---|---|
| alphabetics : Array [static] [read-only]
The Array representation of all ASCII alphabetics characters
| Char | ||
| alphabeticsUpper : Array [static] [read-only]
The Array representation of all ASCII alphabetics characters (upper case). | Char | ||
| code : Number
Determinates the code of the character. | Char | ||
| controls : Array [static]
The Array representation of all ASCII controls characters. | Char | ||
| symbols : Array [static]
The Array representation of all ASCII symbols characters. | Char | ||
| value : String
Determinates the value of the character. | Char | ||
| Method | Defined By | ||
|---|---|---|---|
Char(str:String, index:uint = 0)
Creates a new Char instance. | Char | ||
fromNumber(num:Number):Char [static]
Returns the Char representation of the specified Number value. | Char | ||
isASCII(extended:Boolean = false):Boolean
Indicates if the character is an ASCII character. | Char | ||
isASCII(c:String, index:uint = 0, extended:Boolean = false):Boolean [static] | Char | ||
isContained(charset:String):Boolean
Indicates if the character is contained in a serie of chars (or charset)
| Char | ||
isContained(c:String, index:uint = 0, charset:String):Boolean [static] | Char | ||
isControl():Boolean
Indicates if the character is a control representation. | Char | ||
isControl(c:String, index:uint = 0):Boolean [static] | Char | ||
isDigit():Boolean
Indicates if the character is a digit representation. | Char | ||
isDigit(c:String, index:uint = 0):Boolean [static]
Indicates if the specified character is a digit character. | Char | ||
isHexDigit():Boolean
Indicates if the character is a hexadecimal digit representation. | Char | ||
isHexDigit(c:String, index:uint = 0):Boolean [static]
Indicates if the specified character is an hexadecimal digit character. | Char | ||
isLetter():Boolean
Indicates if the character is a uppercase or a lowercase letter. | Char | ||
isLetter(c:String, index:uint = 0):Boolean [static]
Indicates if the specified character is a letter. | Char | ||
isLetterOrDigit():Boolean
Indicates if the character is a letter or a digit. | Char | ||
isLetterOrDigit(c:String, index:uint = 0):Boolean [static]
Indicates if the specified character is a letter or a digit. | Char | ||
isLower():Boolean
Indicates if the character is lowercase. | Char | ||
isLower(c:String, index:uint = 0):Boolean [static]
Indicates if the specified character is a lower case. | Char | ||
isSymbol():Boolean
Indicates if the character is a symbol. | Char | ||
isSymbol(c:String, index:uint = 0):Boolean [static]
Indicates if the specified character is a symbol. | Char | ||
isUnicode():Boolean
Indicates if the character is unicode. | Char | ||
isUnicode(c:String, index:uint = 0):Boolean [static]
Indicates if the specified character is a unicode char. | Char | ||
isUpper():Boolean
Indicates if the character is uppercase. | Char | ||
isUpper(c:String, index:uint = 0):Boolean [static]
Indicates if the specified character is a upper char. | Char | ||
isWhiteSpace():Boolean
Indicates if the character is a whitespace. | Char | ||
isWhiteSpace(c:String, index:uint = 0):Boolean [static]
Indicates if the specified character is a whitespace char. | Char | ||
toHexadecimal():String
Converts the character in this hexadecimal code number representation. | Char | ||
| Char | |||
toNumber():Number
Converts the character in this code number representation. | Char | ||
toOctal():String
Converts the character in this octal code number representation. | Char | ||
toString():String
Returns the String representation of the object. | Char | ||
| Char | |||
valueOf():String
Returns the String representation of the object. | Char | ||
| Constant | Defined By | ||
|---|---|---|---|
| ACK : Char [static]
The "acknowledge" unicode character. | Char | ||
| ampersand : Char [static]
The ampersand unicode character. | Char | ||
| apostrophe : Char [static]
The apostrophe unicode character. | Char | ||
| asterisk : Char [static]
The asterisk closing single quotation mark, acute accent unicode character. | Char | ||
| backslash : Char [static]
The reverse slant "\\" unicode character. | Char | ||
| BEL : Char [static]
The "bell" unicode character. | Char | ||
| BS : Char [static]
The "backspace" unicode character. | Char | ||
| CAN : Char [static]
The "cancel" unicode character. | Char | ||
| circumflex : Char [static]
The circumflex "^" character. | Char | ||
| closingBrace : Char [static]
The closing brace "}" character. | Char | ||
| closingBracket : Char [static]
The closing bracket "]" character. | Char | ||
| closingParenthesis : Char [static]
The ")" unicode character. | Char | ||
| colon : Char [static]
The colon ":" unicode character. | Char | ||
| comma : Char [static]
The comma unicode character. | Char | ||
| commercialAt : Char [static]
The "" unicode character. | Char | ||
| CR : Char [static]
The "carriage return" unicode character. | Char | ||
| DC1 : Char [static]
The "device control 1" unicode character. | Char | ||
| DC2 : Char [static]
The "device control 2" unicode character. | Char | ||
| DC3 : Char [static]
The "device control 3" unicode character. | Char | ||
| DC4 : Char [static]
The "device control 4" unicode character. | Char | ||
| DEL : Char [static]
The "DEL" unicode character. | Char | ||
| DLE : Char [static]
The "data link escape" unicode character. | Char | ||
| dollarSign : Char [static]
The "$" unicode character. | Char | ||
| EM : Char [static]
The "end of medium" unicode character. | Char | ||
| ENQ : Char [static]
The "enquiry" unicode character. | Char | ||
| EOT : Char [static]
The "end of transmission" unicode character. | Char | ||
| equals : Char [static]
The equals unicode character. | Char | ||
| ESC : Char [static]
The "escape" unicode character. | Char | ||
| ETB : Char [static]
The "end of transmission block" unicode character. | Char | ||
| ETX : Char [static]
The "end of test" unicode character. | Char | ||
| exclamationPoint : Char [static]
The "!" unicode character. | Char | ||
| FF : Char [static]
The "NP form feed, new page" unicode character. | Char | ||
| FS : Char [static]
The "file separator" unicode character. | Char | ||
| graveAccent : Char [static]
The grave accent "`" character. | Char | ||
| greaterThen : Char [static]
The greaterThen ">" unicode character. | Char | ||
| GS : Char [static]
The "group separator" unicode character. | Char | ||
| lessThan : Char [static]
The lessThan "<" unicode character. | Char | ||
| LF : Char [static]
The "NL line feed, new line" unicode character. | Char | ||
| minus : Char [static]
The minus (hyphen) unicode character. | Char | ||
| NAK : Char [static]
The "negative acknowledge" unicode character. | Char | ||
| NUL : Char [static]
The "null" unicode character. | Char | ||
| numberSign : Char [static]
The "#" unicode character. | Char | ||
| openingBrace : Char [static]
The opening brace "{" character. | Char | ||
| openingBracket : Char [static]
The "" unicode character. | Char | ||
| openingParenthesis : Char [static]
The "" unicode character. | Char | ||
| percent : Char [static]
The percent unicode character. | Char | ||
| period : Char [static]
The decimal point (period) unicode character. | Char | ||
| pipe : Char [static]
The vertical line "|" character. | Char | ||
| plus : Char [static]
The plus unicode character. | Char | ||
| questionMark : Char [static]
The questionMark "?" unicode character. | Char | ||
| quotationMarks : Char [static]
The "\" unicode character. | Char | ||
| RS : Char [static]
The "record separator" unicode character. | Char | ||
| semiColon : Char [static]
The semiColon ";" unicode character. | Char | ||
| SI : Char [static]
The "shift in" unicode character. | Char | ||
| slash : Char [static]
The slash (slant) unicode character. | Char | ||
| SO : Char [static]
The "shift out" unicode character. | Char | ||
| SOH : Char [static]
The "start of heading" unicode character. | Char | ||
| space : Char [static]
The "space" unicode character. | Char | ||
| STX : Char [static]
The "start of text" unicode character. | Char | ||
| SUB : Char [static]
The "substitute" unicode character. | Char | ||
| SYN : Char [static]
The "synchronous idle" unicode character. | Char | ||
| TAB : Char [static]
The "horizontal tab" unicode character. | Char | ||
| tilde : Char [static]
The "-" overline, general accent character. | Char | ||
| underline : Char [static]
The underline "_" character. | Char | ||
| US : Char [static]
The "unit separator" unicode character. | Char | ||
| VT : Char [static]
The "vertical tab" unicode character. | Char | ||
| alphabetics | property |
alphabetics:Array [read-only] The Array representation of all ASCII alphabetics characters
public static function get alphabetics():Array| alphabeticsUpper | property |
alphabeticsUpper:Array [read-only] The Array representation of all ASCII alphabetics characters (upper case).
public static function get alphabeticsUpper():Array| code | property |
code:NumberDeterminates the code of the character.
public function get code():Number public function set code(value:Number):void| controls | property |
public static var controls:ArrayThe Array representation of all ASCII controls characters.
| symbols | property |
public static var symbols:ArrayThe Array representation of all ASCII symbols characters.
| value | property |
value:StringDeterminates the value of the character.
public function get value():String public function set value(value:String):void| Char | () | Constructor |
public function Char(str:String, index:uint = 0)Creates a new Char instance.
Parametersstr:String — String expression use to get a char.
| |
index:uint (default = 0) — index of the character to get in the String (default 0).
|
| fromNumber | () | method |
public static function fromNumber(num:Number):CharReturns the Char representation of the specified Number value.
Parameters
num:Number |
Char — the Char representation of the specified Number value.
|
| isASCII | () | method |
public function isASCII(extended:Boolean = false):BooleanIndicates if the character is an ASCII character.
Parameters
extended:Boolean (default = false) — Indicates if the method test an extented ASCII character.
|
Boolean |
| isASCII | () | method |
public static function isASCII(c:String, index:uint = 0, extended:Boolean = false):BooleanParameters
c:String | |
index:uint (default = 0) | |
extended:Boolean (default = false) |
Boolean |
| isContained | () | method |
public function isContained(charset:String):BooleanIndicates if the character is contained in a serie of chars (or charset)
Parameters
charset:String — a list of characters
|
Boolean |
| isContained | () | method |
public static function isContained(c:String, index:uint = 0, charset:String):BooleanParameters
c:String | |
index:uint (default = 0) | |
charset:String |
Boolean |
| isControl | () | method |
public function isControl():BooleanIndicates if the character is a control representation.
ReturnsBoolean |
| isControl | () | method |
public static function isControl(c:String, index:uint = 0):BooleanParameters
c:String | |
index:uint (default = 0) |
Boolean |
| isDigit | () | method |
public function isDigit():BooleanIndicates if the character is a digit representation.
ReturnsBoolean |
| isDigit | () | method |
public static function isDigit(c:String, index:uint = 0):BooleanIndicates if the specified character is a digit character.
Parameters
c:String | |
index:uint (default = 0) |
Boolean |
| isHexDigit | () | method |
public function isHexDigit():BooleanIndicates if the character is a hexadecimal digit representation.
ReturnsBoolean |
| isHexDigit | () | method |
public static function isHexDigit(c:String, index:uint = 0):BooleanIndicates if the specified character is an hexadecimal digit character.
Parameters
c:String | |
index:uint (default = 0) |
Boolean |
| isLetter | () | method |
public function isLetter():BooleanIndicates if the character is a uppercase or a lowercase letter.
ReturnsBoolean |
| isLetter | () | method |
public static function isLetter(c:String, index:uint = 0):BooleanIndicates if the specified character is a letter.
Parameters
c:String | |
index:uint (default = 0) |
Boolean |
| isLetterOrDigit | () | method |
public function isLetterOrDigit():BooleanIndicates if the character is a letter or a digit.
ReturnsBoolean |
| isLetterOrDigit | () | method |
public static function isLetterOrDigit(c:String, index:uint = 0):BooleanIndicates if the specified character is a letter or a digit.
Parameters
c:String | |
index:uint (default = 0) |
Boolean |
| isLower | () | method |
public function isLower():BooleanIndicates if the character is lowercase.
ReturnsBoolean |
| isLower | () | method |
public static function isLower(c:String, index:uint = 0):BooleanIndicates if the specified character is a lower case.
Parameters
c:String | |
index:uint (default = 0) |
Boolean |
| isSymbol | () | method |
public function isSymbol():BooleanIndicates if the character is a symbol.
ReturnsBoolean |
| isSymbol | () | method |
public static function isSymbol(c:String, index:uint = 0):BooleanIndicates if the specified character is a symbol.
Parameters
c:String | |
index:uint (default = 0) |
Boolean |
| isUnicode | () | method |
public function isUnicode():BooleanIndicates if the character is unicode.
ReturnsBoolean |
| isUnicode | () | method |
public static function isUnicode(c:String, index:uint = 0):BooleanIndicates if the specified character is a unicode char.
Parameters
c:String | |
index:uint (default = 0) |
Boolean |
| isUpper | () | method |
public function isUpper():BooleanIndicates if the character is uppercase.
ReturnsBoolean |
| isUpper | () | method |
public static function isUpper(c:String, index:uint = 0):BooleanIndicates if the specified character is a upper char.
Parameters
c:String | |
index:uint (default = 0) |
Boolean |
| isWhiteSpace | () | method |
public function isWhiteSpace():BooleanIndicates if the character is a whitespace.
ReturnsBoolean |
| isWhiteSpace | () | method |
public static function isWhiteSpace(c:String, index:uint = 0):BooleanIndicates if the specified character is a whitespace char.
Parameters
c:String | |
index:uint (default = 0) |
Boolean |
| toHexadecimal | () | method |
public function toHexadecimal():StringConverts the character in this hexadecimal code number representation.
ReturnsString |
| toLower | () | method |
| toNumber | () | method |
public function toNumber():NumberConverts the character in this code number representation.
ReturnsNumber |
| toOctal | () | method |
public function toOctal():StringConverts the character in this octal code number representation.
ReturnsString |
| toString | () | method |
public function toString():StringReturns the String representation of the object.
ReturnsString — the String representation of the object.
|
| toUpper | () | method |
| valueOf | () | method |
public function valueOf():StringReturns the String representation of the object.
ReturnsString — the String representation of the object.
|
| ACK | Constant |
public static const ACK:CharThe "acknowledge" unicode character.
| ampersand | Constant |
public static const ampersand:CharThe ampersand unicode character.
| apostrophe | Constant |
public static const apostrophe:CharThe apostrophe unicode character.
| asterisk | Constant |
public static const asterisk:CharThe asterisk closing single quotation mark, acute accent unicode character.
| backslash | Constant |
public static const backslash:CharThe reverse slant "\\" unicode character.
| BEL | Constant |
public static const BEL:CharThe "bell" unicode character.
| BS | Constant |
public static const BS:CharThe "backspace" unicode character.
| CAN | Constant |
public static const CAN:CharThe "cancel" unicode character.
| circumflex | Constant |
public static const circumflex:CharThe circumflex "^" character.
| closingBrace | Constant |
public static const closingBrace:CharThe closing brace "}" character.
| closingBracket | Constant |
public static const closingBracket:CharThe closing bracket "]" character.
| closingParenthesis | Constant |
public static const closingParenthesis:CharThe ")" unicode character.
| colon | Constant |
public static const colon:CharThe colon ":" unicode character.
| comma | Constant |
public static const comma:CharThe comma unicode character.
| commercialAt | Constant |
public static const commercialAt:CharThe "" unicode character.
| CR | Constant |
public static const CR:CharThe "carriage return" unicode character.
| DC1 | Constant |
public static const DC1:CharThe "device control 1" unicode character.
| DC2 | Constant |
public static const DC2:CharThe "device control 2" unicode character.
| DC3 | Constant |
public static const DC3:CharThe "device control 3" unicode character.
| DC4 | Constant |
public static const DC4:CharThe "device control 4" unicode character.
| DEL | Constant |
public static const DEL:CharThe "DEL" unicode character.
| DLE | Constant |
public static const DLE:CharThe "data link escape" unicode character.
| dollarSign | Constant |
public static const dollarSign:CharThe "$" unicode character.
| EM | Constant |
public static const EM:CharThe "end of medium" unicode character.
| ENQ | Constant |
public static const ENQ:CharThe "enquiry" unicode character.
| EOT | Constant |
public static const EOT:CharThe "end of transmission" unicode character.
| equals | Constant |
public static const equals:CharThe equals unicode character.
| ESC | Constant |
public static const ESC:CharThe "escape" unicode character.
| ETB | Constant |
public static const ETB:CharThe "end of transmission block" unicode character.
| ETX | Constant |
public static const ETX:CharThe "end of test" unicode character.
| exclamationPoint | Constant |
public static const exclamationPoint:CharThe "!" unicode character.
| FF | Constant |
public static const FF:CharThe "NP form feed, new page" unicode character.
| FS | Constant |
public static const FS:CharThe "file separator" unicode character.
| graveAccent | Constant |
public static const graveAccent:CharThe grave accent "`" character.
| greaterThen | Constant |
public static const greaterThen:CharThe greaterThen ">" unicode character.
| GS | Constant |
public static const GS:CharThe "group separator" unicode character.
| lessThan | Constant |
public static const lessThan:CharThe lessThan "<" unicode character.
| LF | Constant |
public static const LF:CharThe "NL line feed, new line" unicode character.
| minus | Constant |
public static const minus:CharThe minus (hyphen) unicode character.
| NAK | Constant |
public static const NAK:CharThe "negative acknowledge" unicode character.
| NUL | Constant |
public static const NUL:CharThe "null" unicode character.
| numberSign | Constant |
public static const numberSign:CharThe "#" unicode character.
| openingBrace | Constant |
public static const openingBrace:CharThe opening brace "{" character.
| openingBracket | Constant |
public static const openingBracket:CharThe "" unicode character.
| openingParenthesis | Constant |
public static const openingParenthesis:CharThe "" unicode character.
| percent | Constant |
public static const percent:CharThe percent unicode character.
| period | Constant |
public static const period:CharThe decimal point (period) unicode character.
| pipe | Constant |
public static const pipe:CharThe vertical line "|" character.
| plus | Constant |
public static const plus:CharThe plus unicode character.
| questionMark | Constant |
public static const questionMark:CharThe questionMark "?" unicode character.
| quotationMarks | Constant |
public static const quotationMarks:CharThe "\" unicode character.
| RS | Constant |
public static const RS:CharThe "record separator" unicode character.
| semiColon | Constant |
public static const semiColon:CharThe semiColon ";" unicode character.
| SI | Constant |
public static const SI:CharThe "shift in" unicode character.
| slash | Constant |
public static const slash:CharThe slash (slant) unicode character.
| SO | Constant |
public static const SO:CharThe "shift out" unicode character.
| SOH | Constant |
public static const SOH:CharThe "start of heading" unicode character.
| space | Constant |
public static const space:CharThe "space" unicode character.
| STX | Constant |
public static const STX:CharThe "start of text" unicode character.
| SUB | Constant |
public static const SUB:CharThe "substitute" unicode character.
| SYN | Constant |
public static const SYN:CharThe "synchronous idle" unicode character.
| TAB | Constant |
public static const TAB:CharThe "horizontal tab" unicode character.
| tilde | Constant |
public static const tilde:CharThe "-" overline, general accent character.
| underline | Constant |
public static const underline:CharThe underline "_" character.
| US | Constant |
public static const US:CharThe "unit separator" unicode character.
| VT | Constant |
public static const VT:CharThe "vertical tab" unicode character.