Class AjxFormat.Segment
Object
|
+--AjxFormat.Segment
-
Direct Known Subclasses:
-
AjxDateFormat.DateSegment, AjxDateFormat.TimeSegment, AjxNumberFormat.NumberSegment, AjxFormat.TextSegment, AjxMessageFormat.MessageSegment
- class
AjxFormat.Segment
Defined in AjxText.js
Method Summary |
Object
|
format(o)
|
void
|
parse(o, s, i)
Parses the string at the given index, initializes the parse object
(as appropriate), and returns the new index within the string for
the next parsing step.
|
Object
|
toString()
|
<static> Object
|
_parseInt(o, f, adjust, s, index, fixedlen)
Parses an integer at the offset of the given string and calls a
method on the specified object.
|
<static> Object
|
_parseLiteral(literal, s, index)
|
<static> Object
|
_parseLiterals(literals, s, index)
|
AjxFormat.Segment
AjxFormat.Segment(format, s)
format
Object format(o)
parse
void parse(o, s, i)
Parameters:
o
- [object] The parse object to be initialized.
s
- [string] The input string to be parsed.
index
- [number] The index within the string to start parsing.
toString
Object toString()
_parseInt
<static> Object _parseInt(o, f, adjust, s, index, fixedlen)
Parses an integer at the offset of the given string and calls a
method on the specified object.
Parameters:
o
- [object] The target object.
f
- [function] The method to call on the target object.
adjust
- [number] The numeric adjustment to make on the value before calling the object method.
s
- [string] The string to parse.
index
- [number] The index within the string to start parsing.
fixedlen
- [number] If specified, specifies the required number of digits to be parsed.
_parseLiteral
<static> Object _parseLiteral(literal, s, index)
_parseLiterals
<static> Object _parseLiterals(literals, s, index)
Documentation generated by
JSDoc on Thu Apr 27 13:58:41 2006