![]() |
VR-Link API Documentation for HLA 1.3
|
Performs pattern matching against user specified DtString using Boyer Moore algorithm. More...
Collaboration diagram for DtStringPatternMatch:Public Member Functions | |
| DtStringPatternMatch () | |
| default constructor More... | |
| DtStringPatternMatch (const DtString &testStr, const DtString &pattern=DtString::nullString()) | |
| constructor with provided test string and pattern More... | |
| virtual void | setPattern (const DtString &pattern) |
| get/set pattern More... | |
| virtual const DtString & | pattern () const |
| virtual void | setString (const DtString &testStr) |
| get/set test string More... | |
| virtual const DtString & | string () const |
| virtual int | indexOfOccurence (const int start=0) |
| performs the pattern matching and report the index into the test string where the first character of the pattern is. More... | |
| virtual | ~DtStringPatternMatch () |
| destructor More... | |
Protected Member Functions | |
| void | buildSkipTable () |
| build the skip table given the pattern More... | |
Protected Attributes | |
| DtString | myStrCopy |
| DtString | myPattern |
| int * | mySkipTable |
Static Protected Attributes | |
| static const int | theSkipTableSize |
Private Member Functions | |
| DtStringPatternMatch (const DtStringPatternMatch &orig) | |
| copy constructor – Not implemented More... | |
| DtStringPatternMatch & | operator= (const DtStringPatternMatch &orig) |
| assignment operator – Not implemented More... | |
Performs pattern matching against user specified DtString using Boyer Moore algorithm.
Note: This has been deprecated as of VR-Link 3.11. String replacement can also be done with the DtReplaceAllSubstrings and DtReplaceSubstring methods above.
| DtStringPatternMatch::DtStringPatternMatch | ( | ) |
default constructor
| DtStringPatternMatch::DtStringPatternMatch | ( | const DtString & | testStr, |
| const DtString & | pattern = DtString::nullString() |
||
| ) |
constructor with provided test string and pattern
|
private |
copy constructor – Not implemented
|
virtual |
destructor
|
protected |
build the skip table given the pattern
performs the pattern matching and report the index into the test string where the first character of the pattern is.
User can also specify a zero based index into the test string after which the pattern matching will be performed. currently supports ASCII 256 character base returns -1 for no occurrence found returns -2 for uninitialized test string or pattern
|
private |
assignment operator – Not implemented
|
virtual |
|
virtual |
get/set pattern
|
virtual |
get/set test string
|
virtual |
|
protected |
|
protected |
|
protected |
|
staticprotected |