CRgSubState::CRgSubState

CRgSubState::CRgSubState(RGTOKENIDtokenid, LPCTSTRlpszExpression, RGSTATEIDstateid)

Constructor for the CRgSubState object Please refer to the user's guide for more information on tokens and states. CRgSubState objects are normally instantiated with the rg_sub_state macro. The macro takes the same parameters as the constructor. Please refer to the deals sample under Samples\Toolkit\Standard\Utility\regex\deals to see how this macro is used.

Defined in: rgsubstate.cpp

Parameters

tokenid

The token id that should be passed back when a match occurs.

lpszExpression

The regular expression to be used.

stateid

The ID of the state that is to be the active state if the match takes place.

See Also

CRgState

CRgProcessor

CRgDefListener