![]() |
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 | |
| DtStringPatternMatch (const DtString &testStr, const DtString &pattern=DtString::nullString()) | |
| constructor with provided test string and pattern | |
| virtual void | setPattern (const DtString &pattern) |
| get/set pattern | |
| virtual const DtString & | pattern () const |
| virtual void | setString (const DtString &testStr) |
| get/set test string | |
| 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. | |
| virtual | ~DtStringPatternMatch () |
| destructor | |
Protected Member Functions | |
| void | buildSkipTable () |
| build the skip table given the pattern | |
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 | |
| DtStringPatternMatch & | operator= (const DtStringPatternMatch &orig) |
| assignment operator – Not implemented | |
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
|
virtual |
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 |