Apache log4cxx  Version 0.12.0
log4cxx::helpers::Transform Class Reference

Utility class for transforming strings. More...

#include <transform.h>

Static Public Member Functions

static void appendEscapingTags (LogString &buf, const LogString &input)
 This method takes a string which may contain HTML tags (ie, <b>, <table>, etc) and replaces any '<' and '>' characters with respective predefined entity references. More...
 
static void appendEscapingCDATA (LogString &buf, const LogString &input)
 Ensures that embeded CDEnd strings (]]>) are handled properly within message, NDC and throwable tag text. More...
 

Detailed Description

Utility class for transforming strings.

Member Function Documentation

◆ appendEscapingCDATA()

static void log4cxx::helpers::Transform::appendEscapingCDATA ( LogString buf,
const LogString input 
)
static

Ensures that embeded CDEnd strings (]]>) are handled properly within message, NDC and throwable tag text.

Parameters
bufoutput stream holding the XML data to this point. The initial CDStart (<![CDATA[) and final CDEnd (]]>) of the CDATA section are the responsibility of the calling method.
inputThe String that is inserted into an existing CDATA Section within buf.

◆ appendEscapingTags()

static void log4cxx::helpers::Transform::appendEscapingTags ( LogString buf,
const LogString input 
)
static

This method takes a string which may contain HTML tags (ie, <b>, <table>, etc) and replaces any '<' and '>' characters with respective predefined entity references.

Parameters
bufoutput stream where to write the modified string.
inputThe text to be converted.
Returns
The input string with the characters '<' and '>' replaced with &lt; and &gt; respectively.

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