DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
Static Public Member Functions | List of all members
dd4hep::xml::XmlString Class Reference

Definition of the XmlString class. More...

#include <XMLElements.h>

Static Public Member Functions

static XmlCharreplicate (const XmlChar *c)
 Replicate string: internally allocates new string, which must be free'ed with release. More...
 
static XmlChartranscode (const char *c)
 Transcode string. More...
 
static void release (char **p)
 Release string. More...
 
static size_t length (const char *s)
 String length in native representation. More...
 
static size_t length (const XmlChar *s)
 String length in native representation. More...
 
static char * transcode (const XmlChar *c)
 Transcoded string from unicode to ascii. More...
 
static void release (XmlChar **p)
 Release string. More...
 

Detailed Description

Definition of the XmlString class.

Definition of the XmlString class. Unly used to have the same code base as for XercesC, where this class does the unicode translations and en/decoding.

Author
M.Frank
Version
1.0

Definition at line 51 of file XMLElements.h.

Member Function Documentation

◆ length() [1/2]

size_t dd4hep::xml::XmlString::length ( const char *  s)
static

String length in native representation.

Definition at line 154 of file XMLElements.cpp.

◆ length() [2/2]

size_t dd4hep::xml::XmlString::length ( const XmlChar s)
static

String length in native representation.

Definition at line 157 of file XMLElements.cpp.

◆ release() [1/2]

void dd4hep::xml::XmlString::release ( char **  p)
static

Release string.

Definition at line 151 of file XMLElements.cpp.

◆ release() [2/2]

void dd4hep::xml::XmlString::release ( XmlChar **  p)
static

Release string.

Definition at line 148 of file XMLElements.cpp.

◆ replicate()

XmlChar * dd4hep::xml::XmlString::replicate ( const XmlChar c)
static

Replicate string: internally allocates new string, which must be free'ed with release.

Definition at line 139 of file XMLElements.cpp.

◆ transcode() [1/2]

XmlChar * dd4hep::xml::XmlString::transcode ( const char *  c)
static

Transcode string.

Definition at line 145 of file XMLElements.cpp.

◆ transcode() [2/2]

char * dd4hep::xml::XmlString::transcode ( const XmlChar c)
static

Transcoded string from unicode to ascii.

Definition at line 142 of file XMLElements.cpp.


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