The OpenD Programming Language

MatcherConcept

Conceptual type that outlines the common properties of all UTF Matchers.

Note: For illustration purposes only, every method call results in assertion failure. Use utfMatcher to obtain a concrete matcher for UTF-8 or UTF-16 encodings.

Members

Functions

match
bool match(Range inp)
skip
bool skip(Range inp)
test
bool test(Range inp)

Perform a semantic equivalent 2 operations: decoding a $(CODEPOINT) at front of inp and testing if it belongs to the set of $(CODEPOINTS) of this matcher.

Properties

subMatcher
auto subMatcher [@property getter]

Advanced feature - provide direct access to a subset of matcher based a set of known encoding lengths. Lengths are provided in code units. The sub-matcher then may do less operations per any test/match.

Meta