Introduction

Syntax

Program Help

Examples

Download

Match Tool 2.1

Match Tool 3.0

 

CRegexpT::PrepareMatch

Return: Content | Prev GetNamedGroupNumber | Next: Replace


CRegexpT::PrepareMatch

CContext * PrepareMatch(const CHART * tstring) const;

CContext * PrepareMatch(const CHART * tstring, int start) const;


Return Value

Initialized context object, which is going to be used in Match(CContext * pContext) .


Parameters

tstring
     String to be matched, use \0 to indicate end of string.

start
     The start position to search.


Remarks

To initialize a context object, which is used to be matched many times continuously.

To call PrepareMatch method without assigning a start position, the start position will  be determined according to the match mode: if LEFT to RIGHT mode, starts at 0; if RIGHT to LEFT mode, starts at the end of text.

If the start position is assigned, DEELX will do match at that position.

 

 

RegExLab.com © 2005 - All Rights Reserved