Incremental Matcher

An incremental matcher compares two text buffers from left-to-right. For example, the match between "garage" and "gander" is "ga".

It has four key concepts - incremental matcher base class, buffer matcher, pointer to descriptor matcher and resizable buffer matcher.

Incremental matcher base class

The base class provides the interface to get and set the text to be matched, and also to perform match tests.

The base class is RIncrMatcherBase.

Buffer matcher

Derived from RIncrMatcherBase, the buffer matcher class incrementally matches text against a modifiable descriptor buffer (TBuf).

It is provided by RIncrMatcherBuf.

Pointer to descriptor matcher

Derived from RIncrMatcherBase, the pointer to descriptor matcher class incrementally matches text against a descriptor accessed via a pointer.

It is provided by RIncrMatcherPtr.

Resizable buffer matcher

Derived from RIncrMatcherBase, the resizable buffer matcher class incrementally matches text against a text buffer with variable maximum length.

It is provided by RIncrMatcherTextBuf.