Class ParserInfo

Class which handles what inputs are accepted. Subclass this to customize the language and acceptable values for each parameter.

Inherits from

  • Object (base class)

Constructors

Name Description
this Ctor

Fields

Name Type Description
ampmAA int[string] AAs used for matching strings to calendar numbers, e.g. Jan is 1
hmsAA int[string] AAs used for matching strings to calendar numbers, e.g. Jan is 1
jumpAA int[string] AAs used for matching strings to calendar numbers, e.g. Jan is 1
monthsAA int[string] AAs used for matching strings to calendar numbers, e.g. Jan is 1
pertainAA int[string] AAs used for matching strings to calendar numbers, e.g. Jan is 1
utczoneAA int[string] AAs used for matching strings to calendar numbers, e.g. Jan is 1
weekdaysAA int[string] AAs used for matching strings to calendar numbers, e.g. Jan is 1

Methods

Name Description
ampm Tests for presence of name in each of the AAs
convert Take a range of character ranges or a range of ranges of character ranges and converts it to an associative array that the internal parser info methods can use.
hms Tests for presence of name in each of the AAs
jump Tests for presence of name in each of the AAs
month Tests for presence of name in each of the AAs
pertain Tests for presence of name in each of the AAs
tzoffset Tests for presence of name in each of the AAs
utczone Tests for presence of name in each of the AAs
weekday Tests for presence of name in each of the AAs

Parameters

NameDescription
dayFirst Whether to interpret the first value in an ambiguous 3-integer date (e.g. 01/05/09) as the day (true) or month (false). If yearFirst is set to true, this distinguishes between YDM and YMD. Default is false.
yearFirst Whether to interpret the first value in an ambiguous 3-integer date (e.g. 01/05/09) as the year. If true, the first number is taken to be the year, otherwise the last number is taken to be the year. Default is false.

Authors

Copyright

License