예제 #1
0
LPXENTITY _tagXMLEntitys::GetEntity( int entity )
{
	for( unsigned int i = 0 ; i < size(); i ++ )
	{
		if( at(i).entity == entity )
			return LPXENTITY(&at(i));
	}
	return NULL;
}
예제 #2
0
LPXENTITY _tagXMLEntitys::getEntity( int entity )
{
	for( int i = 0 ; i < (int)size(); i ++ )
	{
		if( at(i).entity == entity )
			return LPXENTITY(&at(i));
	}
	return NULL;
}
예제 #3
0
LPXENTITY _tagXMLEntitys::GetEntity( LPTSTR entity )
{
	for( unsigned int i = 0 ; i < size(); i ++ )
	{
		LPTSTR ref = (LPTSTR)at(i).ref;
		LPTSTR ps = entity;
		while( ref && *ref )
			if( *ref++ != *ps++ )
				break;
		if( ref && !*ref )	// found!
			return LPXENTITY(&at(i));
	}
	return NULL;
}
예제 #4
0
LPXENTITY _tagXMLEntitys::getEntity( char* entity )
{
	for( int i = 0 ; i < (int)size(); i ++ )
	{
		char* ref = (char*)at(i).ref;
		char* ps = entity;
		while( ref && *ref )
			if( *ref++ != *ps++ )
				break;
		if( ref && !*ref )	// found!
			return LPXENTITY(&at(i));
	}
	return NULL;
}