#include "General.h"
#include "RegNodePareCode.h"		// This header.

/////////////////////////////////////////////////////////////////////////
// RegNodePareCode_xZkqqHx_iDeDiDjDiDhGiDiKiDiBiDjDiDgHiBeC_xHqqkZx_

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	RegNodePareCode::RegNodePareCode
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiDjDiDfIiDgHiDiJiDeOiDfOiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.16 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
RegNodePareCode::RegNodePareCode ()
{
	m_tcpStr = NULL;
} // RegNodePareCode::RegNodePareCode.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	RegNodePareCode::IsKindOf
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iClBiCmMiDeOiDiJiDfIiCkKiBeBiOhHjCoIiCmMiDeOiDiJiDfIiCmMiDfEiDhFiDeOiDiJiDfIiCmFiCkAiCoJiCkJiCmHiCkEiCkJiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	type	:_xZkqqHx_jClCiCnHiCoJiDeOiDiJiDfIiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iDfEiDhFiDeOiDiJiDfIiCmMiPoKiNiHiCmN_xHqqkZx_ TRUE_xZkqqHx_iBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.16 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
BOOL RegNodePareCode::IsKindOf (NODE_TYPE type)
{
	if (type == NODE_PARE_CODE) return TRUE;
	return RegNodeAnyCode::IsKindOf(type);
} // RegNodePareCode::IsKindOf.

/*************************************************************************
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x_>	_xZkqqHx_iDhNiDgCiDgAiClFiClNiPoKiNiHiCmN_xHqqkZx_ TRUE_xZkqqHx_iBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.16 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
BOOL RegNodePareCode::IsMatch (WORD& wPreChar, CTCP& tcpStr, CTCP tcpStrEnd)
{
	// _xZkqqHx_iImKjChFiCpAiLeMjIfOiBeC_xHqqkZx_
	m_tcpStr = tcpStr;
	// _xZkqqHx_iClBiCoKiImIiNhOiBeBiOkOiCkKjGlDiCkCiCmIiCoHiCmO_xHqqkZx_ TRUE_xZkqqHx_iBeC_xHqqkZx_
	if (m_pNodeNext == NULL) return TRUE;
	// _xZkqqHx_iImIiMoDiCmMiOkOiCkKiDhNiDgCiDgAiClHiCoKiCmO_xHqqkZx_ TRUE_xZkqqHx_iBeC_xHqqkZx_
	if (m_pNodeNext->IsMatch(wPreChar, tcpStr, tcpStrEnd)) return TRUE;
	// _xZkqqHx_iImKjChFiLeMjIfOiCpAiJpAiPjMiBeC_xHqqkZx_
	m_tcpStr = NULL;
	return FALSE;
} // RegNodePareCode::IsMatch.

