cleanup
This commit is contained in:
@@ -1,8 +1,4 @@
|
|||||||
#include "global.h"
|
#include "global.h"
|
||||||
// XmlFile.cpp: implementation of the XmlFile class.
|
|
||||||
//
|
|
||||||
//////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
#include "XmlFile.h"
|
#include "XmlFile.h"
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
@@ -28,40 +24,8 @@ static const XENTITY x_EntityTable[] = {
|
|||||||
PARSEINFO piDefault;
|
PARSEINFO piDefault;
|
||||||
DISP_OPT optDefault;
|
DISP_OPT optDefault;
|
||||||
XENTITYS entityDefault((LPXENTITY)x_EntityTable, sizeof(x_EntityTable)/sizeof(x_EntityTable[0]) );
|
XENTITYS entityDefault((LPXENTITY)x_EntityTable, sizeof(x_EntityTable)/sizeof(x_EntityTable[0]) );
|
||||||
//////////////////////////////////////////////////////////////////////
|
|
||||||
// Construction/Destruction
|
|
||||||
//////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
|
// skip spaces
|
||||||
//========================================================
|
|
||||||
// Name : _tcschrs
|
|
||||||
// Desc : same with strpbrk
|
|
||||||
// Param :
|
|
||||||
// Return :
|
|
||||||
//--------------------------------------------------------
|
|
||||||
// Coder Date Desc
|
|
||||||
// bro 2002-10-29
|
|
||||||
//========================================================
|
|
||||||
char* _tcschrs( const char* psz, const char* pszchs )
|
|
||||||
{
|
|
||||||
while( psz && *psz )
|
|
||||||
{
|
|
||||||
if( strchr( pszchs, *psz ) )
|
|
||||||
return (char*)psz;
|
|
||||||
psz++;
|
|
||||||
}
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
//========================================================
|
|
||||||
// Name : _tcsskip
|
|
||||||
// Desc : skip space
|
|
||||||
// Param :
|
|
||||||
// Return : skiped string
|
|
||||||
//--------------------------------------------------------
|
|
||||||
// Coder Date Desc
|
|
||||||
// bro 2002-10-29
|
|
||||||
//========================================================
|
|
||||||
char* _tcsskip( const char* psz )
|
char* _tcsskip( const char* psz )
|
||||||
{
|
{
|
||||||
while( psz && *psz == ' ' ) psz++;
|
while( psz && *psz == ' ' ) psz++;
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
// XmlFile.h: interface for the XmlFile class.
|
// XmlFile.h: interface for the XmlFile class.
|
||||||
//
|
//
|
||||||
// Adapted from http://www.codeproject.com/cpp/xmlite.asp.
|
// Adapted from http://www.codeproject.com/cpp/xmlite.asp.
|
||||||
// On 2004-02-09 Cho,Kyung Min gave us permission to use and modify this
|
// On 2004-02-09 Cho, Kyung-Min gave us permission to use and modify this
|
||||||
// library.
|
// library.
|
||||||
//
|
//
|
||||||
// XmlFile : XML Lite Parser Library
|
// XmlFile : XML Lite Parser Library
|
||||||
|
|||||||
Reference in New Issue
Block a user