#include <mw/msvftext.h>
class CMsvFindText : public CMsgActive, public CMsgActive |
Public Member Functions | |
---|---|
~CMsvFindText() | |
IMPORT_C void | FindRichTextL(const TDesC &, const CRichText &, TMsvPartList, TRequestStatus &) |
IMPORT_C TBool | FindRichTextL(const TDesC &, const CRichText &, TMsvPartList) |
IMPORT_C void | FindTextL(const TDesC &, const TDesC &, TMsvPartList, TRequestStatus &) |
IMPORT_C TBool | FindTextL(const TDesC &, const TDesC &, TMsvPartList) |
TBool | FoundText() |
IMPORT_C CMsvFindText * | NewL(TInt) |
IMPORT_C CMsvFindText * | NewLC(TInt) |
Inherited Attributes | |
---|---|
CActive::iStatus |
Inherited Enumerations | |
---|---|
CActive:TPriority |
A utility class which searches through given plain text or rich text for a specified text string.
The class is an active object and searching can be done synchronously or asynchronously. An instance of this class can be re-used to perform multiple searches for text.
IMPORT_C void | FindRichTextL | ( | const TDesC & | aFind, |
const CRichText & | aSource, | |||
TMsvPartList | aFlags, | |||
TRequestStatus & | aStatus | |||
) |
Searches for a specified text string within the given rich text asynchronously.
Parameters | |
---|---|
aFind | The text string to search for. |
aSource | The rich text to be searched. |
aFlags | A set of flags which modify the way the search works: KMsvFindCaseSensitive means the search is successful only if there is an exact case match for the text. KMsvFindWholeWord means the search is successful only if the matching text in aSource is not delimited by alphanumeric characters. |
aStatus | The request status object, which is set when the search operation is complete. Use FoundText() to return the result of the search. |
Searches for a specified text string within the given rich text synchronously.
Parameters | |
---|---|
aFind | The text string to search for. |
aSource | The rich text to be searched. |
aFlags | A set of flags which modify the way the search works: KMsvFindCaseSensitive means the search is successful only if there is an exact case match for the text. KMsvFindWholeWord means the search is successful only if the matching text in aSource is not delimited by alphanumeric characters. |
IMPORT_C void | FindTextL | ( | const TDesC & | aFind, |
const TDesC & | aSource, | |||
TMsvPartList | aFlags, | |||
TRequestStatus & | aStatus | |||
) |
Performs an asynchronous search for a text string within another text string.
Parameters | |
---|---|
aFind | The text string to search for. |
aSource | The plain text to be searched. |
aFlags | A set of flags which modify the way the search works: KMsvFindCaseSensitive means the search is successful only if there is an exact case match for the text. KMsvFindWholeWord means the search is successful only if the matching text in aSource is not delimited by alphanumeric characters. |
aStatus | The request status object, which is set when the search operation is complete. Use FoundText() to return the result of the search. |
Performs a synchronous search for a text string within another text string.
Parameters | |
---|---|
aFind | The text string to search for. |
aSource | The plain text to be searched. |
aFlags | A set of flags which modify the way the search works: KMsvFindCaseSensitive means the search is successful only if there is an exact case match for the text. KMsvFindWholeWord means the search is successful only if the matching text in aSource is not delimited by alphanumeric characters. |
TBool | FoundText | ( | ) | const [inline] |
IMPORT_C CMsvFindText * | NewL | ( | TInt | aPriority = EPriorityStandard | ) | [static] |
Creates a new find text utility object with the specified priority.
The function leaves if the object cannot be created.
Parameters | |
---|---|
aPriority | The priority of this active object. |
IMPORT_C CMsvFindText * | NewLC | ( | TInt | aPriority = EPriorityStandard | ) | [static] |
Creates a new find text utility object with the specified priority and puts a pointer to the new object onto the cleanup stack.
The function leaves if the object cannot be created.
Parameters | |
---|---|
aPriority | The priority of this active object. |