NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
tinyxml2::XMLUtil Class Reference

#include <tinyxml2.h>

Collaboration diagram for tinyxml2::XMLUtil:

Static Public Member Functions

static const char * SkipWhiteSpace (const char *p, int *curLineNumPtr)
 
static char * SkipWhiteSpace (char *const p, int *curLineNumPtr)
 
static bool IsWhiteSpace (char p)
 
static bool IsNameStartChar (unsigned char ch)
 
static bool IsNameChar (unsigned char ch)
 
static bool IsPrefixHex (const char *p)
 
static bool StringEqual (const char *p, const char *q, int nChar=INT_MAX)
 
static bool IsUTF8Continuation (const char p)
 
static const char * ReadBOM (const char *p, bool *hasBOM)
 
static const char * GetCharacterRef (const char *p, char *value, int *length)
 
static void ConvertUTF32ToUTF8 (unsigned long input, char *output, int *length)
 
static void ToStr (int v, char *buffer, int bufferSize)
 
static void ToStr (unsigned v, char *buffer, int bufferSize)
 
static void ToStr (bool v, char *buffer, int bufferSize)
 
static void ToStr (float v, char *buffer, int bufferSize)
 
static void ToStr (double v, char *buffer, int bufferSize)
 
static void ToStr (int64_t v, char *buffer, int bufferSize)
 
static void ToStr (uint64_t v, char *buffer, int bufferSize)
 
static bool ToInt (const char *str, int *value)
 
static bool ToUnsigned (const char *str, unsigned *value)
 
static bool ToBool (const char *str, bool *value)
 
static bool ToFloat (const char *str, float *value)
 
static bool ToDouble (const char *str, double *value)
 
static bool ToInt64 (const char *str, int64_t *value)
 
static bool ToUnsigned64 (const char *str, uint64_t *value)
 
static void SetBoolSerialization (const char *writeTrue, const char *writeFalse)
 

Static Private Attributes

static const char * writeBoolTrue = "true"
 
static const char * writeBoolFalse = "false"
 

Detailed Description

Definition at line 551 of file tinyxml2.h.

Member Function Documentation

◆ ConvertUTF32ToUTF8()

void tinyxml2::XMLUtil::ConvertUTF32ToUTF8 ( unsigned long  input,
char *  output,
int *  length 
)
static

Definition at line 417 of file tinyxml2.cpp.

References TIXMLASSERT.

Referenced by GetCharacterRef().

◆ GetCharacterRef()

const char * tinyxml2::XMLUtil::GetCharacterRef ( const char *  p,
char *  value,
int *  length 
)
static

Definition at line 470 of file tinyxml2.cpp.

References ConvertUTF32ToUTF8(), and TIXMLASSERT.

Referenced by tinyxml2::StrPair::GetStr().

Here is the call graph for this function:

◆ IsNameChar()

static bool tinyxml2::XMLUtil::IsNameChar ( unsigned char  ch)
inlinestatic

Definition at line 587 of file tinyxml2.h.

Referenced by tinyxml2::StrPair::ParseName().

◆ IsNameStartChar()

static bool tinyxml2::XMLUtil::IsNameStartChar ( unsigned char  ch)
inlinestatic

◆ IsPrefixHex()

static bool tinyxml2::XMLUtil::IsPrefixHex ( const char *  p)
inlinestatic

Definition at line 594 of file tinyxml2.h.

Referenced by ToInt(), ToInt64(), ToUnsigned(), and ToUnsigned64().

◆ IsUTF8Continuation()

static bool tinyxml2::XMLUtil::IsUTF8Continuation ( const char  p)
inlinestatic

Definition at line 609 of file tinyxml2.h.

◆ IsWhiteSpace()

static bool tinyxml2::XMLUtil::IsWhiteSpace ( char  p)
inlinestatic

Definition at line 572 of file tinyxml2.h.

Referenced by tinyxml2::StrPair::CollapseWhitespace().

◆ ReadBOM()

const char * tinyxml2::XMLUtil::ReadBOM ( const char *  p,
bool *  hasBOM 
)
static

Definition at line 399 of file tinyxml2.cpp.

References TIXML_UTF_LEAD_0, TIXML_UTF_LEAD_1, TIXML_UTF_LEAD_2, and TIXMLASSERT.

Referenced by tinyxml2::XMLDocument::Parse().

◆ SetBoolSerialization()

void tinyxml2::XMLUtil::SetBoolSerialization ( const char *  writeTrue,
const char *  writeFalse 
)
static

Definition at line 389 of file tinyxml2.cpp.

References writeBoolFalse, and writeBoolTrue.

◆ SkipWhiteSpace() [1/2]

static char * tinyxml2::XMLUtil::SkipWhiteSpace ( char *const  p,
int *  curLineNumPtr 
)
inlinestatic

Definition at line 566 of file tinyxml2.h.

◆ SkipWhiteSpace() [2/2]

static const char * tinyxml2::XMLUtil::SkipWhiteSpace ( const char *  p,
int *  curLineNumPtr 
)
inlinestatic

◆ StringEqual()

◆ ToBool()

bool tinyxml2::XMLUtil::ToBool ( const char *  str,
bool *  value 
)
static

Definition at line 636 of file tinyxml2.cpp.

References StringEqual(), and ToInt().

Referenced by tinyxml2::XMLElement::QueryBoolText(), and tinyxml2::XMLAttribute::QueryBoolValue().

Here is the call graph for this function:

◆ ToDouble()

bool tinyxml2::XMLUtil::ToDouble ( const char *  str,
double *  value 
)
static

◆ ToFloat()

bool tinyxml2::XMLUtil::ToFloat ( const char *  str,
float *  value 
)
static

◆ ToInt()

bool tinyxml2::XMLUtil::ToInt ( const char *  str,
int *  value 
)
static

Definition at line 611 of file tinyxml2.cpp.

References IsPrefixHex(), and TIXML_SSCANF.

Referenced by tinyxml2::XMLElement::QueryIntText(), tinyxml2::XMLAttribute::QueryIntValue(), and ToBool().

Here is the call graph for this function:

◆ ToInt64()

bool tinyxml2::XMLUtil::ToInt64 ( const char *  str,
int64_t *  value 
)
static

Definition at line 680 of file tinyxml2.cpp.

References IsPrefixHex(), and TIXML_SSCANF.

Referenced by tinyxml2::XMLElement::QueryInt64Text(), and tinyxml2::XMLAttribute::QueryInt64Value().

Here is the call graph for this function:

◆ ToStr() [1/7]

void tinyxml2::XMLUtil::ToStr ( bool  v,
char *  buffer,
int  bufferSize 
)
static

Definition at line 578 of file tinyxml2.cpp.

References TIXML_SNPRINTF, writeBoolFalse, and writeBoolTrue.

◆ ToStr() [2/7]

void tinyxml2::XMLUtil::ToStr ( double  v,
char *  buffer,
int  bufferSize 
)
static

Definition at line 593 of file tinyxml2.cpp.

References TIXML_SNPRINTF.

◆ ToStr() [3/7]

void tinyxml2::XMLUtil::ToStr ( float  v,
char *  buffer,
int  bufferSize 
)
static

Definition at line 587 of file tinyxml2.cpp.

References TIXML_SNPRINTF.

◆ ToStr() [4/7]

void tinyxml2::XMLUtil::ToStr ( int  v,
char *  buffer,
int  bufferSize 
)
static

◆ ToStr() [5/7]

void tinyxml2::XMLUtil::ToStr ( int64_t  v,
char *  buffer,
int  bufferSize 
)
static

Definition at line 599 of file tinyxml2.cpp.

References TIXML_SNPRINTF.

◆ ToStr() [6/7]

void tinyxml2::XMLUtil::ToStr ( uint64_t  v,
char *  buffer,
int  bufferSize 
)
static

Definition at line 605 of file tinyxml2.cpp.

References TIXML_SNPRINTF.

◆ ToStr() [7/7]

void tinyxml2::XMLUtil::ToStr ( unsigned  v,
char *  buffer,
int  bufferSize 
)
static

Definition at line 572 of file tinyxml2.cpp.

References TIXML_SNPRINTF.

◆ ToUnsigned()

bool tinyxml2::XMLUtil::ToUnsigned ( const char *  str,
unsigned *  value 
)
static

Definition at line 628 of file tinyxml2.cpp.

References IsPrefixHex(), and TIXML_SSCANF.

Referenced by tinyxml2::XMLElement::QueryUnsignedText(), and tinyxml2::XMLAttribute::QueryUnsignedValue().

Here is the call graph for this function:

◆ ToUnsigned64()

bool tinyxml2::XMLUtil::ToUnsigned64 ( const char *  str,
uint64_t *  value 
)
static

Definition at line 700 of file tinyxml2.cpp.

References IsPrefixHex(), and TIXML_SSCANF.

Referenced by tinyxml2::XMLElement::QueryUnsigned64Text(), and tinyxml2::XMLAttribute::QueryUnsigned64Value().

Here is the call graph for this function:

Member Data Documentation

◆ writeBoolFalse

const char * tinyxml2::XMLUtil::writeBoolFalse = "false"
staticprivate

Definition at line 645 of file tinyxml2.h.

Referenced by SetBoolSerialization(), and ToStr().

◆ writeBoolTrue

const char * tinyxml2::XMLUtil::writeBoolTrue = "true"
staticprivate

Definition at line 644 of file tinyxml2.h.

Referenced by SetBoolSerialization(), and ToStr().


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