PrefixTree

A string based prefix tree for parsing time-zone names.

Members

Functions

add
bool add(string k, string v)

Adds a pair of {key, value} into the prefix tree.

copyTree
PrefixTree copyTree()

Clone a copy of this tree

isEqual
bool isEqual(dchar c1, char c2)
Undocumented in source. Be warned that the author may not have intended to support it.
isEqual
bool isEqual(char c1, char c2)
Undocumented in source. Be warned that the author may not have intended to support it.
match
string match(string text, int off, int end)

Match text with the prefix tree.

match
string match(string text, ParsePosition pos)

Match text with the prefix tree.

newNode
PrefixTree newNode(string k, string v, PrefixTree child)
Undocumented in source. Be warned that the author may not have intended to support it.
prefixOf
bool prefixOf(string text, int off, int end)
Undocumented in source. Be warned that the author may not have intended to support it.
toKey
string toKey(string k)
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

newTree
PrefixTree newTree(DateTimeParseContext context)

Creates a new prefix parsing tree based on parse context.

newTree
PrefixTree newTree(Set!(string) keys, DateTimeParseContext context)

Creates a new prefix parsing tree.

Variables

c0
dchar c0;
Undocumented in source.
child
PrefixTree child;
Undocumented in source.
key
string key;
Undocumented in source.
sibling
PrefixTree sibling;
Undocumented in source.
value
string value;
Undocumented in source.

Meta