Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Incremental Matcher Overview


Purpose

Compares two text buffers from left-to-right.

[Top]


Description

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

The API 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 for getting and setting the text to be matched against, and also for performing 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.