Taxonomy Categories:
Member Functions:
Interface Category:
API.
Inherits From:
TTextPatternIterator
Inherited By:
None.
Purpose:
TExactTextPatternIterator, derived from TTextPatternIterator, uses a TBitwiseTextOrder object to provide language-insensitive text pattern searching. Patterns are only matched when their Unicode character values are equivalent.
Instantiation:
Allocate on the heap or the stack.
Deriving Classes:
The class is designed to be used directly.
Concurrency:
Not multithread safe.
Resource Use:
No special requirements.
- TExactTextPatternIterator (const TText * text, const TText & pattern, const TTextRange & searchRange =TTextRange :: GetMaximumRange ())
- TExactTextPatternIterator (const TExactTextPatternIterator &)
Interface Category:
API.
Purpose:
- Constructs an iterator for the specified text object, pattern, and range.
- Copy constructor.
Calling Context:
- Called to instantiate this class.
- Called to copy an object.
Parameters:
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual ~ TExactTextPatternIterator ()
Interface Category:
API.
Purpose:
Destructor.
Calling Context:
Called to destroy an object.
Parameters:
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual void SetPattern (const TText & pattern)
Interface Category:
API.
Purpose:
Specifies the pattern for the iterator to search for.
Calling Context:
Called by clients.
Parameters:
- const TText & pattern -The pattern for the iterator to search for.
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
Overrides inherited TTextPatternIterator function.
const TExactTextPatternIterator & operator =(const TExactTextPatternIterator &)
Interface Category:
API.
Purpose:
Assignment operator.
Calling Context:
Called when an object is assigned to another compatible object.
Parameters:
Return Value:
A non-const reference to the left-hand side object.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual void SetText (const TText * text, const TTextRange & searchRange)
Interface Category:
API.
Purpose:
Sets the text on which a pattern search, if requested, will be performed.
Calling Context:
Called by clients.
Parameters:
- const TText * text -The text.
- const TTextRange & searchRange -The search range within the text.
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
Overrides inherited TTextPatternIterator function.
virtual bool FindBackward (const TTextRange & searchRange, TTextRange & foundRange) const
Interface Category:
API.
Purpose:
Iterates backward through the text object to find the previous occurrence.
Calling Context:
Called by the Last and Previous functions.
Parameters:
- const TTextRange & searchRange -The valid range for searching.
- TTextRange & foundRange -The range of the located pattern.
Return Value:
Returns true if the pattern is found.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
This protected function overrides the inherited TTextPatternIterator function.
virtual bool FindForward (const TTextRange & searchRange, TTextRange & foundRange) const
Interface Category:
API.
Purpose:
Iterates forward through the text object to find the next occurrence.
Calling Context:
Called by the First and Next functions.
Parameters:
- const TTextRange & searchRange -The valid range for searching.
- TTextRange & foundRange -The range of the located pattern.
Return Value:
Returns true if the pattern is found.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
This protected function overrides the inherited TTextPatternIterator function.
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.