Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.11


Classes | Typedefs | Functions
XalanDOMString.hpp File Reference
#include <xalanc/XalanDOM/XalanDOMDefinitions.hpp>
#include <cassert>
#include <xalanc/Include/STLHelper.hpp>
#include <xalanc/Include/XalanMemoryManagement.hpp>
#include <xalanc/Include/XalanVector.hpp>
#include <xalanc/XalanDOM/XalanDOMException.hpp>

Go to the source code of this file.

Classes

class  XalanDOMString
 
class  XalanDOMString::TranscodingError
 
struct  DOMStringHashFunction
 Hash functor for DOMStrings. More...
 
struct  DOMStringPointerHashFunction
 Hash functor for DOMStrings. More...
 
struct  XalanMapKeyTraits< XalanDOMString * >
 
struct  XalanMapKeyTraits< const XalanDOMString * >
 
struct  DOMStringEqualsFunction
 Equals functor for DOMStrings. More...
 
struct  DOMStringNotEqualsFunction
 Not equals functor for DOMStrings. More...
 
struct  DOMStringLessThanFunction
 Less than functor for DOMStrings. More...
 
struct  DOMStringPointerEqualToFunction
 Equal to functor for DOMStrings. More...
 
struct  DOMStringPointerLessThanFunction
 Less than functor for DOMStrings. More...
 
struct  XalanMapKeyTraits< XalanDOMString >
 

Typedefs

typedef XalanVector< XalanDOMChar > XalanDOMCharVectorType
 
typedef XalanVector< char > CharVectorType
 

Functions

bool operator== (const XalanDOMString &theLHS, const XalanDOMString &theRHS)
 
bool operator== (const XalanDOMString &theLHS, const XalanDOMChar *theRHS)
 
bool operator== (const XalanDOMChar *theLHS, const XalanDOMString &theRHS)
 
bool operator!= (const XalanDOMString &theLHS, const XalanDOMString &theRHS)
 
bool operator!= (const XalanDOMChar *theLHS, const XalanDOMString &theRHS)
 
bool operator!= (const XalanDOMString &theLHS, const XalanDOMChar *theRHS)
 
 TranscodeToLocalCodePage (const XalanDOMChar *theSourceString, XalanDOMString::size_type theSourceStringLength, CharVectorType &targetVector, bool terminate=false)
 Convert a XalanDOMChar string to C++ standard library vector, transcoding to the default local code page. More...
 
 TranscodeToLocalCodePage (const XalanDOMChar *theSourceString, XalanDOMString::size_type theSourceStringLength, CharVectorType &targetVector, bool terminate, char theSubstitutionChar)
 Convert a XalanDOMChar string to C++ standard library vector, transcoding to the default local code page. More...
 
const XalanDOMString TranscodeFromLocalCodePage (const char *theSourceString, XalanDOMString::size_type theSourceStringLength=XalanDOMString::npos)
 Convert a string to a XalanDOMString, transcoding from the default local code page. More...
 
 TranscodeToLocalCodePage (const XalanDOMChar *theSourceString, CharVectorType &targetVector, bool terminate=false)
 Convert a XalanDOMChar string to C++ standard library vector, transcoding to the default local code page. More...
 
 TranscodeToLocalCodePage (const XalanDOMChar *theSourceString, CharVectorType &targetVector, bool terminate, char theSubstitutionChar)
 Convert a XalanDOMChar string to C++ standard library vector, transcoding to the default local code page. More...
 
const CharVectorType TranscodeToLocalCodePage (const XalanDOMChar *theSourceString)
 Convert XalanDOMString to C++ standard library vector, transcoding to the default local code page. More...
 
bool TranscodeToLocalCodePage (const XalanDOMString &theSourceString, CharVectorType &theTargetVector, bool terminate=false)
 Convert XalanDOMString to C++ standard library vector, transcoding to the default local code page. More...
 
 TranscodeToLocalCodePage (const XalanDOMString &theSourceString, CharVectorType &theTargetVector, bool terminate, char theSubstitutionChar)
 Convert XalanDOMString to C++ standard library vector, transcoding to the default local code page. More...
 
const CharVectorType TranscodeToLocalCodePage (const XalanDOMString &theSourceString)
 Convert XalanDOMString to C++ standard library vector, transcoding to the default local code page. More...
 
const XalanDOMStringTranscodeFromLocalCodePage (const char *theSourceString, XalanDOMString &theResult, XalanDOMString::size_type theSourceStringLength=XalanDOMString::npos)
 Convert a string to a XalanDOMString, transcoding from the default local code page. More...
 
 TranscodeFromLocalCodePage (const char *theSourceString, XalanDOMString::size_type theSourceStringLength, XalanDOMCharVectorType &theTargetVector, bool terminate=false)
 Convert a string to a C++ standard library vector, transcoding from the default local code page. More...
 
 TranscodeFromLocalCodePage (const char *theSourceString, XalanDOMCharVectorType &theTargetVector, bool terminate=false)
 Convert a string to a C++ standard library vector, transcoding from the default local code page. More...
 
 TranscodeFromLocalCodePage (const char *theSourceString, XalanDOMString::size_type theSourceStringLength, bool theSourceStringIsNullTerminated, XalanDOMCharVectorType &theTargetVector, bool terminate=false)
 Convert a string to a C++ standard library vector, transcoding from the default local code page. More...
 
 TranscodeFromLocalCodePage (const CharVectorType &theSourceString, XalanDOMString &theResult)
 Convert a vector of characters to a XalanDOMString, transcoding from the default local code. More...
 

Typedef Documentation

◆ CharVectorType

typedef XalanVector<char> CharVectorType

Definition at line 1150 of file XalanDOMString.hpp.

◆ XalanDOMCharVectorType

typedef XalanVector<XalanDOMChar> XalanDOMCharVectorType

Definition at line 1148 of file XalanDOMString.hpp.

Function Documentation

◆ operator!=() [1/3]

bool operator!= ( const XalanDOMString theLHS,
const XalanDOMString theRHS 
)
inline

Definition at line 1049 of file XalanDOMString.hpp.

◆ operator!=() [2/3]

bool operator!= ( const XalanDOMChar *  theLHS,
const XalanDOMString theRHS 
)
inline

Definition at line 1059 of file XalanDOMString.hpp.

◆ operator!=() [3/3]

bool operator!= ( const XalanDOMString theLHS,
const XalanDOMChar *  theRHS 
)
inline

Definition at line 1069 of file XalanDOMString.hpp.

◆ operator==() [1/3]

bool operator== ( const XalanDOMString theLHS,
const XalanDOMString theRHS 
)
inline

Definition at line 1018 of file XalanDOMString.hpp.

◆ operator==() [2/3]

bool operator== ( const XalanDOMString theLHS,
const XalanDOMChar *  theRHS 
)
inline

Definition at line 1028 of file XalanDOMString.hpp.

◆ operator==() [3/3]

bool operator== ( const XalanDOMChar *  theLHS,
const XalanDOMString theRHS 
)
inline

Definition at line 1038 of file XalanDOMString.hpp.

◆ TranscodeFromLocalCodePage() [1/6]

const XalanDOMString TranscodeFromLocalCodePage ( const char *  theSourceString,
XalanDOMString::size_type  theSourceStringLength = XalanDOMString::npos 
)
inline

Convert a string to a XalanDOMString, transcoding from the default local code page.

Parameters
theSourceStringThe source string
theSourceStringLengthThe source string length.
Returns
The new string.

Definition at line 1205 of file XalanDOMString.hpp.

◆ TranscodeFromLocalCodePage() [2/6]

const XalanDOMString& TranscodeFromLocalCodePage ( const char *  theSourceString,
XalanDOMString theResult,
XalanDOMString::size_type  theSourceStringLength = XalanDOMString::npos 
)
inline

Convert a string to a XalanDOMString, transcoding from the default local code page.

Parameters
theSourceStringThe source string
theResultThe result.
theSourceStringLengthThe source string length.
Returns
The new string.

Definition at line 1339 of file XalanDOMString.hpp.

◆ TranscodeFromLocalCodePage() [3/6]

TranscodeFromLocalCodePage ( const char *  theSourceString,
XalanDOMString::size_type  theSourceStringLength,
XalanDOMCharVectorType theTargetVector,
bool  terminate = false 
)

Convert a string to a C++ standard library vector, transcoding from the default local code page.

Parameters
theSourceStringThe source string
theSourceStringLengthThe source string length.
targetVectorThe target string
terminateIf true, the transcoded string will be null-terminated
Returns
true if successful, false if not.

◆ TranscodeFromLocalCodePage() [4/6]

TranscodeFromLocalCodePage ( const char *  theSourceString,
XalanDOMCharVectorType theTargetVector,
bool  terminate = false 
)

Convert a string to a C++ standard library vector, transcoding from the default local code page.

The string must be null-terminated.

Parameters
sourceStringThe source string
targetVectorThe target string
terminateIf true, the transcoded string will be null-terminated
Returns
true if successful, false if not.

◆ TranscodeFromLocalCodePage() [5/6]

TranscodeFromLocalCodePage ( const char *  theSourceString,
XalanDOMString::size_type  theSourceStringLength,
bool  theSourceStringIsNullTerminated,
XalanDOMCharVectorType theTargetVector,
bool  terminate = false 
)

Convert a string to a C++ standard library vector, transcoding from the default local code page.

Parameters
theSourceStringThe source string
theSourceStringLengthThe source string length.
theSourceStringIsNullTerminatedtrue if the source string is null-terminated, otherwise false.
targetVectorThe target string
terminateIf true, the transcoded string will be null-terminated
Returns
true if successful, false if not.

◆ TranscodeFromLocalCodePage() [6/6]

TranscodeFromLocalCodePage ( const CharVectorType theSourceString,
XalanDOMString theResult 
)

Convert a vector of characters to a XalanDOMString, transcoding from the default local code.

Parameters
theSourceStringThe source vector.
theResultThe result.
Returns
The transcoded string.

◆ TranscodeToLocalCodePage() [1/8]

TranscodeToLocalCodePage ( const XalanDOMChar *  theSourceString,
XalanDOMString::size_type  theSourceStringLength,
CharVectorType targetVector,
bool  terminate = false 
)

Convert a XalanDOMChar string to C++ standard library vector, transcoding to the default local code page.

Parameters
sourceStringThe source string
sourceStringLengthThe source string length.
targetVectorThe target string
terminateIf true, the transcoded string will be null-terminated
Returns
true if successful, false if not.

◆ TranscodeToLocalCodePage() [2/8]

TranscodeToLocalCodePage ( const XalanDOMChar *  theSourceString,
XalanDOMString::size_type  theSourceStringLength,
CharVectorType targetVector,
bool  terminate,
char  theSubstitutionChar 
)

Convert a XalanDOMChar string to C++ standard library vector, transcoding to the default local code page.

If the source string contines code points, that can't be represented in the local code page, the substitution character will be used

Parameters
sourceStringThe source string
sourceStringLengthThe source string length.
targetVectorThe target string
terminateIf true, the transcoded string will be null-terminated
theSubstitutionCharThe substitution character for code points that are not presentable in the local page

◆ TranscodeToLocalCodePage() [3/8]

TranscodeToLocalCodePage ( const XalanDOMChar *  theSourceString,
CharVectorType targetVector,
bool  terminate = false 
)

Convert a XalanDOMChar string to C++ standard library vector, transcoding to the default local code page.

The string must be null-terminated.

Parameters
theSourceStringThe source string
targetVectorThe target string
terminateIf true, the transcoded string will be null-terminated
Returns
true if successful, false if not.

◆ TranscodeToLocalCodePage() [4/8]

TranscodeToLocalCodePage ( const XalanDOMChar *  theSourceString,
CharVectorType targetVector,
bool  terminate,
char  theSubstitutionChar 
)

Convert a XalanDOMChar string to C++ standard library vector, transcoding to the default local code page.

The string must be null-terminated.

Parameters
theSourceStringThe source string
targetVectorThe target string
terminateIf true, the transcoded string will be null-terminated

◆ TranscodeToLocalCodePage() [5/8]

const CharVectorType TranscodeToLocalCodePage ( const XalanDOMChar *  theSourceString)
inline

Convert XalanDOMString to C++ standard library vector, transcoding to the default local code page.

Null-terminate the sttring...

Parameters
theSourceStringsource string
Returns
The transcoded string.

Definition at line 1256 of file XalanDOMString.hpp.

◆ TranscodeToLocalCodePage() [6/8]

bool TranscodeToLocalCodePage ( const XalanDOMString theSourceString,
CharVectorType theTargetVector,
bool  terminate = false 
)
inline

Convert XalanDOMString to C++ standard library vector, transcoding to the default local code page.

Parameters
theSourceStringThe source string
theTargetVectorThe target string
Returns
true if successful, false if not.

Definition at line 1277 of file XalanDOMString.hpp.

◆ TranscodeToLocalCodePage() [7/8]

TranscodeToLocalCodePage ( const XalanDOMString theSourceString,
CharVectorType theTargetVector,
bool  terminate,
char  theSubstitutionChar 
)

Convert XalanDOMString to C++ standard library vector, transcoding to the default local code page.

Parameters
theSourceStringThe source string
targetVectorThe target string
terminateIf true, the transcoded string will be null-terminated
theSubstitutionCharThe substitution character for code points that are not presentable in the local page

◆ TranscodeToLocalCodePage() [8/8]

const CharVectorType TranscodeToLocalCodePage ( const XalanDOMString theSourceString)
inline

Convert XalanDOMString to C++ standard library vector, transcoding to the default local code page.

Parameters
thetheSourceStringsource string
Returns
The transcoded string.

Definition at line 1318 of file XalanDOMString.hpp.

Interpreting class diagrams

Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.

Xalan-C++ XSLT Processor Version 1.11
Copyright © 1999-2012 The Apache Software Foundation.
All Rights Reserved.

Apache Logo