lib/xmlParser.cpp File Reference

#include <memory.h>
#include <assert.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "xmlParser.h"

Include dependency graph for xmlParser.cpp:


Classes

struct  ClearTag
struct  XML
struct  NextToken

Defines

#define INDENTCHAR   _T('\t')
#define MEMORYINCREASE   50
#define LENSTR(lpsz)   (lpsz ? _tcslen(lpsz) : 0)

Enumerations

enum  TokenTypeTag {
  eTokenText = 0, eTokenQuotedText, eTokenTagStart, eTokenTagEnd,
  eTokenCloseTag, eTokenEquals, eTokenDeclaration, eTokenShortHandClose,
  eTokenClear, eTokenError
}
enum  Attrib { eAttribName = 0, eAttribEquals, eAttribValue }
enum  Status { eInsideTag = 0, eOutsideTag }

Functions

int _tcslen (LPCTSTR c)
int _tcsnicmp (LPCTSTR c1, LPCTSTR c2, int l)
int _tcsicmp (LPCTSTR c1, LPCTSTR c2)
LPTSTR _tcsstr (LPCTSTR c1, LPCTSTR c2)
LPTSTR _tcschr (LPCTSTR c1, int c2)
LPTSTR _tcscpy (LPTSTR c1, LPCTSTR c2)
int mmin (const int t1, const int t2)
LPTSTR toXMLString (LPTSTR dest, LPCTSTR source)
int lengthXMLString (LPCTSTR source)
LPTSTR toXMLString (LPCTSTR source)
LPTSTR toXMLStringFast (LPTSTR *dest, int *destSz, LPCTSTR source)
LPTSTR fromXMLString (LPCTSTR s, int lo, XML *pXML)
char myTagCompare (LPCTSTR cclose, LPCTSTR copen)
static TCHAR getNextChar (XML *pXML)
static TCHAR FindNonWhiteSpace (XML *pXML)
static NextToken GetNextToken (XML *pXML, int *pcbToken, enum TokenTypeTag *pType)
static void * myRealloc (void *p, int newsize, int memInc, int sizeofElem)
static void FindEndOfText (LPCTSTR lpszToken, int *pcbText)
LPTSTR stringDup (LPCTSTR lpszData, int cbData)
static void CountLinesAndColumns (LPCTSTR lpXML, int nUpto, XMLResults *pResults)
static void charmemset (LPTSTR dest, TCHAR c, int l)

Variables

static int memoryIncrease = 0

Define Documentation

#define INDENTCHAR   _T('\t')
 

#define LENSTR lpsz   )     (lpsz ? _tcslen(lpsz) : 0)
 

#define MEMORYINCREASE   50
 


Enumeration Type Documentation

enum Attrib
 

Enumerator:
eAttribName 
eAttribEquals 
eAttribValue 

enum Status
 

Enumerator:
eInsideTag 
eOutsideTag 

enum TokenTypeTag
 

Enumerator:
eTokenText 
eTokenQuotedText 
eTokenTagStart 
eTokenTagEnd 
eTokenCloseTag 
eTokenEquals 
eTokenDeclaration 
eTokenShortHandClose 
eTokenClear 
eTokenError 


Function Documentation

LPTSTR _tcschr LPCTSTR  c1,
int  c2
 

LPTSTR _tcscpy LPTSTR  c1,
LPCTSTR  c2
 

int _tcsicmp LPCTSTR  c1,
LPCTSTR  c2
 

int _tcslen LPCTSTR  c  ) 
 

int _tcsnicmp LPCTSTR  c1,
LPCTSTR  c2,
int  l
 

LPTSTR _tcsstr LPCTSTR  c1,
LPCTSTR  c2
 

static void charmemset LPTSTR  dest,
TCHAR  c,
int  l
[inline, static]
 

static void CountLinesAndColumns LPCTSTR  lpXML,
int  nUpto,
XMLResults pResults
[static]
 

static void FindEndOfText LPCTSTR  lpszToken,
int *  pcbText
[static]
 

static TCHAR FindNonWhiteSpace XML pXML  )  [static]
 

LPTSTR fromXMLString LPCTSTR  s,
int  lo,
XML pXML
 

static TCHAR getNextChar XML pXML  )  [inline, static]
 

static NextToken GetNextToken XML pXML,
int *  pcbToken,
enum TokenTypeTag pType
[static]
 

int lengthXMLString LPCTSTR  source  ) 
 

int mmin const int  t1,
const int  t2
[inline]
 

static void* myRealloc void *  p,
int  newsize,
int  memInc,
int  sizeofElem
[static]
 

char myTagCompare LPCTSTR  cclose,
LPCTSTR  copen
 

LPTSTR stringDup LPCTSTR  lpszData,
int  cbData
 

LPTSTR toXMLString LPCTSTR  source  ) 
 

LPTSTR toXMLString LPTSTR  dest,
LPCTSTR  source
 

LPTSTR toXMLStringFast LPTSTR *  dest,
int *  destSz,
LPCTSTR  source
 


Variable Documentation

int memoryIncrease = 0 [static]
 


Generated on Sat Jul 1 15:34:16 2006 for B10.CPP by  doxygen 1.4.6