| Property | Defined by | ||
|---|---|---|---|
| body : String text inside the td (or null if it isn't a td)
| Parse | ||
| end : String endTag
| Parse | ||
| leader : String text before the startTag
| Parse | ||
| more : Parse
nextsibling
| Parse | ||
| parts : Parse
first child
| Parse | ||
| tag : String startTag (contains attributes)
| Parse | ||
| trailer : String text after the endTag
| Parse | ||
| Method | Defined by | ||
|---|---|---|---|
|
Parse(text:String, tags:Array, level:int = 0, offset:int = 0)
Parse constructor
Every table, tr and td is a Parse element | Parse | ||
|
Get sibling or child by index.
| Parse | ||
|
getAttribute(name:String):String
attribute value by name
| Parse | ||
|
last element on same depth
td.last returns the last td from the same tr | Parse | ||
|
Get first leaf child.
| Parse | ||
|
parseText(s:String):String
[static]
Unformat, unescape and trim a String.
| Parse | ||
|
replacement(from:String):String
[static]
Unescape an entity.
| Parse | ||
|
size():int
Count elements on same depth.
Doesn't count those before this one. | Parse | ||
|
text():String
Unformat, unescape and trim String value
| Parse | ||
|
toString():String
| Parse | ||
|
unescape(s:String):String
[static]
Unescape all entities in a string.
| Parse | ||
|
unformat(s:String):String
[static]
Removes all html tags from a string
| Parse | ||
|
width():int
width attribute value or 0 if not found
| Parse | ||
| Constant | Defined by | ||
|---|---|---|---|
| TAGS : Array [static] default tagnames ["table", "tr", "td"]
| Parse | ||
| body | property |
public var body:Stringtext inside the td (or null if it isn't a td)
| end | property |
public var end:StringendTag
| leader | property |
public var leader:Stringtext before the startTag
| more | property |
public var more:Parsenextsibling
| parts | property |
public var parts:Parsefirst child
| tag | property |
public var tag:StringstartTag (contains attributes)
| trailer | property |
public var trailer:Stringtext after the endTag
| Parse | () | constructor |
public function Parse(text:String, tags:Array, level:int = 0, offset:int = 0)
Parse constructor
Every table, tr and td is a Parse element
text:String — text input
|
|
tags:Array — tags optional default Parse.TAGS (use null to get default)
|
|
level:int (default = 0) — level optional default 0
|
|
offset:int (default = 0) — offset optional default 0
|
| at | () | method |
public function at(i:int, j:int = -1, k:int = -1):Parse
Get sibling or child by index.
i:int — index
|
|
j:int (default = -1) — optional index one level deeper
|
|
k:int (default = -1) — optional index two levels deeper
|
Parse —
sibling or child
|
| getAttribute | () | method |
public function getAttribute(name:String):Stringattribute value by name
Parametersname:String |
String |
| last | () | method |
public function last():Parse
last element on same depth
td.last returns the last td from the same tr
Parse |
| leaf | () | method |
| parseText | () | method |
public static function parseText(s:String):StringUnformat, unescape and trim a String.
Parameterss:String |
String |
| replacement | () | method |
public static function replacement(from:String):StringUnescape an entity.
Parametersfrom:String |
String |
| size | () | method |
public function size():int
Count elements on same depth.
Doesn't count those before this one.
int |
| text | () | method |
public function text():StringUnformat, unescape and trim String value
ReturnsString |
| toString | () | method |
public function toString():StringReturns
String — exactly the same string as the input
|
| unescape | () | method |
public static function unescape(s:String):StringUnescape all entities in a string.
Parameterss:String |
String |
| unformat | () | method |
public static function unformat(s:String):StringRemoves all html tags from a string
Parameterss:String |
String |
| width | () | method |
public function width():intwidth attribute value or 0 if not found
Returnsint |
| TAGS | constant |
public static const TAGS:Arraydefault tagnames ["table", "tr", "td"]