Static Public Member Functions

base::XML Class Reference

XML helper functions. More...

#include <libppbase/base/XML.h>

List of all members.

Static Public Member Functions

static String escapeHTML (const String &str, bool crlf=false)
 Escapes a string.
static String escape (const char *str, unsigned int length)
 Escapes a string.
static String decode (const String &str)
 Decodes an XML-encoded string.

Detailed Description

XML helper functions.

Author:
Christoph Schwarz
Version:
$Id: XML.h 22 2010-09-06 02:04:56Z cschwarz1 $

Member Function Documentation

static String base::XML::decode ( const String str  )  [static]

Decodes an XML-encoded string.

Parameters:
str the XML-encoded string
Returns:
the decoded string
static String base::XML::escape ( const char *  str,
unsigned int  length 
) [static]

Escapes a string.

Escaping escapes special characters '<', '>', '&' and '"' and removes all non-whitespace control characters

Parameters:
str the string to escape
length string length
Returns:
the escaped string
static String base::XML::escapeHTML ( const String str,
bool  crlf = false 
) [static]

Escapes a string.

Escaping escapes special characters '<', '>', '&' and '"' and removes all non-whitespace control characters

Parameters:
str the string to escape
crlf flag: change line breaks to '
'
Returns:
the escaped string

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