Elm  2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
elm::xom Namespace Reference

Classes

class  Attribute
 
class  Builder
 
class  Comment
 
class  Document
 
class  Element
 
class  Elements
 
class  Exception
 
class  Node
 
class  NodeFactory
 
class  Nodes
 
class  ParentNode
 
class  Serializer
 
class  String
 
class  Text
 
class  UnsupportedNode
 
class  XIncluder
 
class  XMLException
 
class  XSLException
 
class  XSLTransform
 

Typedefs

typedef unsigned char char_t
 

Functions

io::Outputoperator<< (io::Output &out, String str)
 
static int read_callback (void *context, char *buffer, int len)
 
static int close_callback (void *context)
 
static String escapeSimple (char chr)
 
static bool isAttrEscape (char chr)
 
static bool isTextEscape (char chr)
 

Typedef Documentation

◆ char_t

typedef unsigned char char_t

XOM character type.

Function Documentation

◆ close_callback()

static int elm::xom::close_callback ( void context)
static

Referenced by Builder::build().

◆ escapeSimple()

static String elm::xom::escapeSimple ( char  chr)
static

Get the escape sequence matching the given character. Only support character under code 127.

Parameters
chrCharacter to escape.
Returns
Escaped string.

Referenced by Serializer::writeAttributeValue(), and Serializer::writeEscaped().

◆ isAttrEscape()

static bool elm::xom::isAttrEscape ( char  chr)
static

Test if the character must be escaped in an attribute value.

Parameters
chrCharacter to test.
Returns
True if it is attribute escapable, false else.

Referenced by Serializer::writeAttributeValue().

◆ isTextEscape()

static bool elm::xom::isTextEscape ( char  chr)
static

Test if the character must be escaped in a text value.

Parameters
chrCharacter to test.
Returns
True if it is text escapable, false else.

Referenced by Serializer::writeEscaped().

◆ operator<<()

io::Output& elm::xom::operator<< ( io::Output out,
String  str 
)
inline

References elm::str().

◆ read_callback()

static int elm::xom::read_callback ( void context,
char *  buffer,
int  len 
)
static

References elm::io::read().

Referenced by Builder::build().