StrPair Class Reference

Public Types

enum  {
  NEEDS_ENTITY_PROCESSING = 0x01 , NEEDS_NEWLINE_NORMALIZATION = 0x02 , NEEDS_WHITESPACE_COLLAPSING = 0x04 , TEXT_ELEMENT = NEEDS_ENTITY_PROCESSING | NEEDS_NEWLINE_NORMALIZATION ,
  TEXT_ELEMENT_LEAVE_ENTITIES = NEEDS_NEWLINE_NORMALIZATION , ATTRIBUTE_NAME = 0 , ATTRIBUTE_VALUE = NEEDS_ENTITY_PROCESSING | NEEDS_NEWLINE_NORMALIZATION , ATTRIBUTE_VALUE_LEAVE_ENTITIES = NEEDS_NEWLINE_NORMALIZATION ,
  COMMENT = NEEDS_NEWLINE_NORMALIZATION
}
 

Public Member Functions

void Set (char *start, char *end, int flags)
 
const char * GetStr ()
 
bool Empty () const
 
void SetInternedStr (const char *str)
 
void SetStr (const char *str, int flags=0)
 
char * ParseText (char *in, const char *endTag, int strFlags, int *curLineNumPtr)
 
char * ParseName (char *in)
 
void TransferTo (StrPair *other)
 
void Reset ()
 

Private Types

enum  { NEEDS_FLUSH = 0x100 , NEEDS_DELETE = 0x200 }
 

Private Member Functions

void CollapseWhitespace ()
 
 StrPair (const StrPair &other)
 
void operator= (StrPair &other)
 

Private Attributes

int _flags
 
char * _start
 
char * _end
 

Detailed Description

Definition at line 128 of file tinyxml2.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Definition at line 131 of file tinyxml2.h.

◆ anonymous enum

anonymous enum
private

Definition at line 178 of file tinyxml2.h.

Constructor & Destructor Documentation

◆ StrPair()

StrPair ( )
inline

Definition at line 144 of file tinyxml2.h.

◆ ~StrPair()

~StrPair ( )

Definition at line 138 of file tinyxml2.cpp.

Member Function Documentation

◆ CollapseWhitespace()

void CollapseWhitespace ( )
private

Definition at line 247 of file tinyxml2.cpp.

◆ Empty()

bool Empty ( ) const
inline

Definition at line 158 of file tinyxml2.h.

◆ GetStr()

const char * GetStr ( )

Definition at line 280 of file tinyxml2.cpp.

◆ ParseName()

char * ParseName ( char *  in)

Definition at line 224 of file tinyxml2.cpp.

◆ ParseText()

char * ParseText ( char *  in,
const char *  endTag,
int  strFlags,
int *  curLineNumPtr 
)

Definition at line 195 of file tinyxml2.cpp.

◆ Reset()

void Reset ( )

Definition at line 170 of file tinyxml2.cpp.

◆ Set()

void Set ( char *  start,
char *  end,
int  flags 
)
inline

Definition at line 147 of file tinyxml2.h.

◆ SetInternedStr()

void SetInternedStr ( const char *  str)
inline

Definition at line 162 of file tinyxml2.h.

◆ SetStr()

void SetStr ( const char *  str,
int  flags = 0 
)

Definition at line 182 of file tinyxml2.cpp.

◆ TransferTo()

void TransferTo ( StrPair other)

Definition at line 144 of file tinyxml2.cpp.

Member Data Documentation

◆ _end

char* _end
private

Definition at line 185 of file tinyxml2.h.

◆ _flags

int _flags
private

Definition at line 183 of file tinyxml2.h.

◆ _start

char* _start
private

Definition at line 184 of file tinyxml2.h.


The documentation for this class was generated from the following files: