class RIncrMatcherBase |
Base class for incremental matcher classes.
An incremental matcher compares two text buffers from left-to-right. For example, the match between "garage" and "gander" is "ga".
The class provides the interface for getting and setting the text to be matched against, and for performing match tests. Each type of match test is available in three versions, one using binary comparison, one using locale collation rules (comparison of strings to produce a dictionary-like ('lexicographic') ordering, e.g. ignoring punctuation), and one using locale folding rules (e.g. ignoring case).
"bafl.lib" 5.0
Public Member Functions | |
---|---|
~RIncrMatcherBase() | |
IMPORT_C void | AppendChar(TChar) |
void | Clear() |
IMPORT_C void | DeleteLastChar() |
IMPORT_C TInt | FirstMatchingIndex(TInt &, const MDesCArray &, TInt) |
IMPORT_C TInt | FirstMatchingIndexC(TInt &, const MDesCArray &, TInt) |
IMPORT_C TInt | FirstMatchingIndexF(TInt &, const MDesCArray &, TInt) |
IMPORT_C TBool | IsMatch(const TDesC &) |
IMPORT_C TBool | IsMatchC(const TDesC &) |
IMPORT_C TBool | IsMatchF(const TDesC &) |
TInt | MatchLength() |
TPtrC | MatchText() |
TInt | MaxLength() |
IMPORT_C void | SetBestMatch(const TDesC &) |
IMPORT_C void | SetBestMatchC(const TDesC &) |
IMPORT_C void | SetBestMatchF(const TDesC &) |
void | SetMatchText(const TDesC &) |
Protected Member Functions | |
---|---|
RIncrMatcherBase() | |
TDes & | MatchDes() |
const TDes & | MatchDes() |
Private Member Functions | |
---|---|
TInt | DoFirstMatchingIndex(TInt &, const MDesCArray &, TCompareFunc) |
TBool | DoIsMatch(const TDesC &, TCompareFunc) |
void | DoSetBestMatch(const TDesC &, TCompareFunc) |
Private Member Type Definitions | |
---|---|
typedef | TInt(* TCompareFunc |
TInt | DoFirstMatchingIndex | ( | TInt & | aIndex, |
const MDesCArray & | aDesArray, | |||
TCompareFunc | aCompare | |||
) | const [private] |
TInt & aIndex | |
const MDesCArray & aDesArray | |
TCompareFunc aCompare |
TBool | DoIsMatch | ( | const TDesC & | aQuery, |
TCompareFunc | aCompare | |||
) | const [private] |
const TDesC & aQuery | |
TCompareFunc aCompare |
void | DoSetBestMatch | ( | const TDesC & | aBuf, |
TCompareFunc | aCompare | |||
) | [private] |
const TDesC & aBuf | |
TCompareFunc aCompare |
IMPORT_C TInt | FirstMatchingIndex | ( | TInt & | aResult, |
const MDesCArray & | aDesArray, | |||
TInt | aStartIndex = 0 | |||
) | const |
IMPORT_C TInt | FirstMatchingIndexC | ( | TInt & | aResult, |
const MDesCArray & | aDesArray, | |||
TInt | aStartIndex = 0 | |||
) | const |
IMPORT_C TInt | FirstMatchingIndexF | ( | TInt & | aResult, |
const MDesCArray & | aDesArray, | |||
TInt | aStartIndex = 0 | |||
) | const |
IMPORT_C void | SetBestMatch | ( | const TDesC & | aBuf | ) |
const TDesC & aBuf |
IMPORT_C void | SetBestMatchC | ( | const TDesC & | aBuf | ) |
const TDesC & aBuf |
IMPORT_C void | SetBestMatchF | ( | const TDesC & | aBuf | ) |
const TDesC & aBuf |
void | SetMatchText | ( | const TDesC & | aText | ) | [inline] |
Sets the match text.
const TDesC & aText | String to which to set the match text. |