Export (0) Print
Expand All

CAtlREMatchContext::GetMatch 

Gets a match group.


void GetMatch(
   int nIndex,
   const RECHAR **szStart,
   const RECHAR **szEnd
);
void GetMatch(
   int nIndex,
   MatchGroup *pGroup
);

Parameters

nIndex

Zero based index of the match group to get.

szStart

Pointer that will be set to the beginning of the match group.

szEnd

Pointer that will be set to the end of the match group.

pGroup

A MatchGroup structure containing the start and end pointers.

After calling GetMatch, szStart points to the start of the match group specified by nIndex, and szEnd points one character beyond the end of the match group.

NoteNote

These pointers point into the original input string and thus are only valid during the lifetime of the input string.

Community Additions

ADD
Show:
© 2015 Microsoft