Class: TExactTextPatternIterator

Declaration: TextComparison.h

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.

Member Function: TExactTextPatternIterator::TExactTextPatternIterator

  1. TExactTextPatternIterator (const TText * text, const TText & pattern, const TTextRange & searchRange =TTextRange :: GetMaximumRange ())
  2. TExactTextPatternIterator (const TExactTextPatternIterator &)

Interface Category:

API.

Purpose:

  1. Constructs an iterator for the specified text object, pattern, and range.
  2. Copy constructor.

Calling Context:

  1. Called to instantiate this class.
  2. Called to copy an object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TExactTextPatternIterator::~TExactTextPatternIterator

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.

Member Function: TExactTextPatternIterator::SetPattern

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:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

Overrides inherited TTextPatternIterator function.

Member Function: TExactTextPatternIterator::operator=

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.

Member Function: TExactTextPatternIterator::SetText

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:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

Overrides inherited TTextPatternIterator function.

Member Function: TExactTextPatternIterator::FindBackward

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:

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.

Member Function: TExactTextPatternIterator::FindForward

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:

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.