Direct Queries
RWUStringSearch supports direct match queries using the isMatch() method. This method returns true if a specified iterator offset in the search string begins a match for the pattern string.
For example, this code tests if there is a match starting at the fifth code point in a text:
 
RWUStringSearch searcher(pattern, text, collator);
RWUConstStringIterator iter =
text.beginCodePointIterator().advanceCodePoints(5);
 
if (searcher.isMatch(iter)) {
// Do something here...
}