CRegexpT::Match
Return: Content | Prev
MatchExact | Next: GetNamedGroupNumber
CRegexpT::Match
MatchResult Match(const CHART * tstring)
const;
MatchResult Match(const CHART * tstring, int
start) const;
MatchResult Match(CContext * pContext) const;
Return Value
MatchResult object.
Through MatchResult object, you can get whether matched successfully. If success, capture
infomation can be gotten.
Parameters
tstring
String to be matched, use \0 to indicate end of
string.
start
The start position to search.
pContext
Context object when matches continuously.
Remarks
To search and match substring from text.
To call Match 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.
As to the third form, DEELX will start match at the end of last match.
|