Xalan-C++ API Reference
1.12.0
|
#include <xalanc/XalanDOM/XalanDOMString.hpp>
Classes | |
class | TranscodingError |
Public Types | |
typedef XalanVector< XalanDOMChar > | XalanDOMCharVectorType |
typedef XalanVector< char > | CharVectorType |
typedef XalanVector< wchar_t > | WideCharVectorType |
typedef XalanDOMChar | value_type |
typedef XalanDOMChar & | reference |
typedef XalanSize_t | size_type |
typedef XalanDOMCharVectorType::iterator | iterator |
typedef XalanDOMCharVectorType::const_iterator | const_iterator |
typedef XalanDOMCharVectorType::reverse_iterator | reverse_iterator |
typedef XalanDOMCharVectorType::const_reverse_iterator | const_reverse_iterator |
Public Member Functions | |
XalanDOMString (MemoryManager &theManager XALAN_DEFAULT_CONSTRUCTOR_MEMMGR) | |
XalanDOMString (const char *theString, MemoryManager &theManager XALAN_DEFAULT_MEMMGR, size_type theCount=size_type(npos)) | |
XalanDOMString (const XalanDOMString &theSource, MemoryManager &theManager XALAN_DEFAULT_CONSTRUCTOR_MEMMGR, size_type theStartPosition=0, size_type theCount=size_type(npos)) | |
XalanDOMString (const XalanDOMChar *theString, MemoryManager &theManager XALAN_DEFAULT_MEMMGR, size_type theCount=size_type(npos)) | |
XalanDOMString (size_type theCount, XalanDOMChar theChar, MemoryManager &theManager XALAN_DEFAULT_MEMMGR) | |
XalanDOMString * | clone (MemoryManager &theManager) |
~XalanDOMString () | |
XalanDOMString & | operator= (const XalanDOMString &theRHS) |
XalanDOMString & | operator= (const XalanDOMChar *theRHS) |
XalanDOMString & | operator= (const char *theRHS) |
XalanDOMString & | operator= (XalanDOMChar theRHS) |
iterator | begin () |
const_iterator | begin () const |
iterator | end () |
const_iterator | end () const |
reverse_iterator | rbegin () |
const_reverse_iterator | rbegin () const |
reverse_iterator | rend () |
const_reverse_iterator | rend () const |
size_type | size () const |
size_type | length () const |
size_type | max_size () const |
void | resize (size_type theCount, XalanDOMChar theChar) |
void | resize (size_type theCount) |
size_type | capacity () const |
void | reserve (size_type theCount=0) |
void | clear () |
iterator | erase (iterator thePosition) |
iterator | erase (iterator theFirst, iterator theLast) |
XalanDOMString & | erase (size_type theStartPosition=0, size_type theCount=size_type(npos)) |
bool | empty () const |
const_reference | operator[] (size_type theIndex) const |
reference | operator[] (size_type theIndex) |
const_reference | at (size_type theIndex) const |
reference | at (size_type theIndex) |
const XalanDOMChar * | c_str () const |
const XalanDOMChar * | data () const |
void | swap (XalanDOMString &theOther) |
XalanDOMString & | operator+= (const XalanDOMString &theSource) |
XalanDOMString & | operator+= (const XalanDOMChar *theString) |
XalanDOMString & | operator+= (XalanDOMChar theChar) |
XalanDOMString & | assign (const XalanDOMChar *theSource) |
XalanDOMString & | assign (const XalanDOMChar *theSource, size_type theCount) |
XalanDOMString & | assign (const char *theSource) |
XalanDOMString & | assign (const char *theSource, size_type theCount) |
XalanDOMString & | assign (const XalanDOMString &theSource, size_type thePosition, size_type theCount) |
XalanDOMString & | assign (const XalanDOMString &theSource) |
XalanDOMString & | assign (size_type theCount, XalanDOMChar theChar) |
XalanDOMString & | assign (iterator theFirstPosition, iterator theLastPosition) |
XalanDOMString & | append (const XalanDOMString &theSource) |
XalanDOMString & | append (const XalanDOMString &theSource, size_type thePosition, size_type theCount) |
XalanDOMString & | append (const XalanDOMChar *theString, size_type theCount) |
XalanDOMString & | append (const XalanDOMChar *theString) |
XalanDOMString & | append (const char *theString, size_type theCount) |
XalanDOMString & | append (const char *theString) |
XalanDOMString & | append (size_type theCount, XalanDOMChar theChar) |
void | push_back (XalanDOMChar theChar) |
XalanDOMString & | insert (size_type thePosition, const XalanDOMString &theString) |
XalanDOMString & | insert (size_type thePosition1, const XalanDOMString &theString, size_type thePosition2, size_type theCount) |
XalanDOMString & | insert (size_type thePosition, const XalanDOMChar *theString, size_type theCount) |
XalanDOMString & | insert (size_type thePosition, const XalanDOMChar *theString) |
XalanDOMString & | insert (size_type thePosition, size_type theCount, XalanDOMChar theChar) |
iterator | insert (iterator thePosition, XalanDOMChar theChar) |
void | insert (iterator thePosition, size_type theCount, XalanDOMChar theChar) |
void | insert (iterator theInsertPosition, iterator theFirstPosition, iterator theLastPosition) |
XalanDOMString & | substr (XalanDOMString &theSubstring, size_type thePosition=0, size_type theCount=size_type(npos)) const |
int | compare (const XalanDOMString &theString) const |
int | compare (size_type thePosition1, size_type theCount1, const XalanDOMString &theString) const |
int | compare (size_type thePosition1, size_type theCount1, const XalanDOMString &theString, size_type thePosition2, size_type theCount2) const |
int | compare (const XalanDOMChar *theString) const |
int | compare (size_type thePosition1, size_type theCount1, const XalanDOMChar *theString, size_type theCount2=size_type(npos)) const |
void | reset (MemoryManager &theManager, const char *theString) |
void | reset (MemoryManager &theManager, const XalanDOMChar *theString) |
void | transcode (CharVectorType &theResult) const |
Transcode the string to the local code page. More... | |
MemoryManager & | getMemoryManager () |
size_t | hash () const |
Static Public Member Functions | |
static size_t | hash (const XalanDOMChar *theString, size_type theLength) |
static bool | equals (const XalanDOMChar *theLHS, size_type theLHSLength, const XalanDOMChar *theRHS, size_type theRHSLength) |
static bool | equals (const XalanDOMChar *theLHS, const XalanDOMChar *theRHS) |
static bool | equals (const XalanDOMString &theLHS, const XalanDOMString &theRHS) |
static bool | equals (const XalanDOMString &theLHS, const XalanDOMChar *theRHS) |
static bool | equals (const XalanDOMChar *theLHS, const XalanDOMString &theRHS) |
static size_type | length (const XalanDOMChar *theString) |
static size_type | length (const char *theString) |
Public Attributes | |
const typedef XalanDOMChar & | const_reference |
Static Public Attributes | |
static const size_type | npos |
Protected Member Functions | |
void | invariants () const |
iterator | getBackInsertIterator () |
const_iterator | getBackInsertIterator () const |
iterator | getIteratorForPosition (size_type thePosition) |
const_iterator | getIteratorForPosition (size_type thePosition) const |
Definition at line 45 of file XalanDOMString.hpp.
typedef XalanVector<char> xalanc::XalanDOMString::CharVectorType |
Definition at line 50 of file XalanDOMString.hpp.
typedef XalanDOMCharVectorType::const_iterator xalanc::XalanDOMString::const_iterator |
Definition at line 60 of file XalanDOMString.hpp.
typedef XalanDOMCharVectorType::const_reverse_iterator xalanc::XalanDOMString::const_reverse_iterator |
Definition at line 62 of file XalanDOMString.hpp.
Definition at line 59 of file XalanDOMString.hpp.
typedef XalanDOMChar& xalanc::XalanDOMString::reference |
Definition at line 54 of file XalanDOMString.hpp.
Definition at line 61 of file XalanDOMString.hpp.
typedef XalanSize_t xalanc::XalanDOMString::size_type |
Definition at line 57 of file XalanDOMString.hpp.
typedef XalanDOMChar xalanc::XalanDOMString::value_type |
Definition at line 53 of file XalanDOMString.hpp.
typedef XalanVector<wchar_t> xalanc::XalanDOMString::WideCharVectorType |
Definition at line 51 of file XalanDOMString.hpp.
typedef XalanVector<XalanDOMChar> xalanc::XalanDOMString::XalanDOMCharVectorType |
Definition at line 49 of file XalanDOMString.hpp.
xalanc::XalanDOMString::XalanDOMString | ( | MemoryManager &theManager | XALAN_DEFAULT_CONSTRUCTOR_MEMMGR | ) |
|
explicit |
xalanc::XalanDOMString::XalanDOMString | ( | const XalanDOMString & | theSource, |
MemoryManager &theManager | XALAN_DEFAULT_CONSTRUCTOR_MEMMGR, | ||
size_type | theStartPosition = 0 , |
||
size_type | theCount = size_type(npos) |
||
) |
|
explicit |
xalanc::XalanDOMString::XalanDOMString | ( | size_type | theCount, |
XalanDOMChar | theChar, | ||
MemoryManager &theManager | XALAN_DEFAULT_MEMMGR | ||
) |
|
inline |
Definition at line 94 of file XalanDOMString.hpp.
|
inline |
Definition at line 518 of file XalanDOMString.hpp.
References xalanc::append(), and xalanc::length().
XalanDOMString& xalanc::XalanDOMString::append | ( | const char * | theString, |
size_type | theCount | ||
) |
|
inline |
Definition at line 507 of file XalanDOMString.hpp.
References xalanc::append(), and xalanc::length().
XalanDOMString& xalanc::XalanDOMString::append | ( | const XalanDOMChar * | theString, |
size_type | theCount | ||
) |
|
inline |
Definition at line 484 of file XalanDOMString.hpp.
References xalanc::append(), c_str(), and length().
Referenced by xalanc::append(), xalanc::DOMServices::getNodeData(), and xalanc::XObject::string().
|
inline |
Definition at line 490 of file XalanDOMString.hpp.
References xalanc::append(), c_str(), and length().
XalanDOMString& xalanc::XalanDOMString::append | ( | size_type | theCount, |
XalanDOMChar | theChar | ||
) |
|
inline |
Definition at line 416 of file XalanDOMString.hpp.
References xalanc::append(), and xalanc::erase().
|
inline |
Definition at line 428 of file XalanDOMString.hpp.
References xalanc::append(), and xalanc::erase().
|
inline |
Definition at line 390 of file XalanDOMString.hpp.
References xalanc::append(), and xalanc::erase().
Referenced by xalanc::assign(), xalanc::AVT::evaluate(), xalanc::XPathFunctionTable::getInstalledFunctionNames(), xalanc::StylesheetRoot::getOutputDoctypePublic(), xalanc::StylesheetRoot::getOutputDoctypeSystem(), xalanc::StylesheetRoot::getOutputEncoding(), xalanc::StylesheetRoot::getOutputMediaType(), xalanc::StylesheetRoot::getOutputStandalone(), xalanc::StylesheetRoot::getOutputVersion(), xalanc::XPathFunctionTable::idToName(), substr(), and xalanc::TranscodeFromLocalCodePage().
|
inline |
Definition at line 402 of file XalanDOMString.hpp.
References xalanc::append(), and xalanc::erase().
|
inline |
Definition at line 448 of file XalanDOMString.hpp.
XalanDOMString& xalanc::XalanDOMString::assign | ( | const XalanDOMString & | theSource, |
size_type | thePosition, | ||
size_type | theCount | ||
) |
XalanDOMString& xalanc::XalanDOMString::assign | ( | iterator | theFirstPosition, |
iterator | theLastPosition | ||
) |
|
inline |
Definition at line 465 of file XalanDOMString.hpp.
References xalanc::append(), and xalanc::erase().
Definition at line 336 of file XalanDOMString.hpp.
|
inline |
Definition at line 328 of file XalanDOMString.hpp.
|
inline |
Definition at line 123 of file XalanDOMString.hpp.
|
inline |
Definition at line 131 of file XalanDOMString.hpp.
|
inline |
Definition at line 344 of file XalanDOMString.hpp.
Referenced by xalanc::ResultNamespacesStack::addDeclaration(), xalanc::XalanNamespacesStack::addDeclaration(), xalanc::XSLTEngineImpl::addResultAttribute(), xalanc::XSLTEngineImpl::addResultNamespaceDecl(), append(), xalanc::c_wstr(), xalanc::collationCompare(), compare(), xalanc::compare(), xalanc::compareIgnoreCaseASCII(), xalanc::XSLException::defaultFormat(), xalanc::DOMStringToDouble(), xalanc::DOMStringToInt(), xalanc::DOMStringToLong(), xalanc::DOMStringToUnsignedLong(), xalanc::endsWith(), equals(), xalanc::equals(), xalanc::equalsIgnoreCaseASCII(), xalanc::Stylesheet::getNamespaceFromStack(), xalanc::URISupport::getURLFromString(), xalanc::URISupport::getURLStringFromString(), xalanc::indexOf(), insert(), xalanc::XPathFunctionTable::InstallFunction(), xalanc::lastIndexOf(), xalanc::MakeXalanDOMCharVector(), xalanc::c_wstr_functor::operator()(), xalanc::OutputString(), xalanc::XalanParsedURI::parse(), xalanc::XalanParsedURI::resolve(), xalanc::startsWith(), xalanc::XObject::string(), xalanc::XalanFormatterWriter::throwInvalidCharacterException(), xalanc::XalanFormatterWriter::throwInvalidUTF16SurrogateException(), xalanc::toCharArray(), xalanc::TranscodeToLocalCodePage(), xalanc::XPathFunctionTable::UninstallFunction(), xalanc::XalanUTF16Writer::write(), xalanc::XalanUTF8Writer::write(), xalanc::XalanOtherEncodingWriter< Predicate, ConstantsType >::write(), xalanc::XercesWrapperHelper::XalanDOMStringToXercesDOMString(), and xalanc::XalanParsedURI::XalanParsedURI().
|
inline |
Definition at line 238 of file XalanDOMString.hpp.
|
inline |
Definition at line 257 of file XalanDOMString.hpp.
Referenced by xalanc::clear(), and xalanc::XalanFormatterWriter::formatNumericCharacterReference().
XalanDOMString* xalanc::XalanDOMString::clone | ( | MemoryManager & | theManager | ) |
int xalanc::XalanDOMString::compare | ( | const XalanDOMChar * | theString | ) | const |
|
inline |
Definition at line 612 of file XalanDOMString.hpp.
References c_str(), and xalanc::compare().
Referenced by xalanc::EnumerateDirectory(), xalanc::XSLTEngineImpl::LessXalanDOMStringPointers::operator()(), xalanc::DOMStringLessThanFunction::operator()(), and xalanc::DOMStringPointerLessThanFunction::operator()().
int xalanc::XalanDOMString::compare | ( | size_type | thePosition1, |
size_type | theCount1, | ||
const XalanDOMChar * | theString, | ||
size_type | theCount2 = size_type(npos) |
||
) | const |
|
inline |
Definition at line 620 of file XalanDOMString.hpp.
References c_str(), xalanc::compare(), and length().
|
inline |
Definition at line 631 of file XalanDOMString.hpp.
References c_str(), and xalanc::compare().
|
inline |
Definition at line 352 of file XalanDOMString.hpp.
References xalanc::c_str().
|
inline |
Definition at line 304 of file XalanDOMString.hpp.
Referenced by xalanc::Stylesheet::getCurrentIncludeBaseIdentifier(), xalanc::DOMServices::getLocalNameOfNode(), xalanc::isEmpty(), and xalanc::OutputString().
|
inline |
Definition at line 139 of file XalanDOMString.hpp.
|
inline |
Definition at line 147 of file XalanDOMString.hpp.
|
inlinestatic |
Definition at line 717 of file XalanDOMString.hpp.
References xalanc::equals(), and xalanc::length().
|
inlinestatic |
Definition at line 738 of file XalanDOMString.hpp.
References c_str(), and xalanc::equals().
|
static |
|
inlinestatic |
Definition at line 730 of file XalanDOMString.hpp.
References c_str(), and xalanc::equals().
|
static |
Definition at line 283 of file XalanDOMString.hpp.
Definition at line 269 of file XalanDOMString.hpp.
Referenced by xalanc::erase().
XalanDOMString& xalanc::XalanDOMString::erase | ( | size_type | theStartPosition = 0 , |
size_type | theCount = size_type(npos) |
||
) |
|
inlineprotected |
Definition at line 787 of file XalanDOMString.hpp.
|
inlineprotected |
Definition at line 795 of file XalanDOMString.hpp.
Definition at line 803 of file XalanDOMString.hpp.
|
inlineprotected |
Definition at line 811 of file XalanDOMString.hpp.
|
inline |
Definition at line 688 of file XalanDOMString.hpp.
Referenced by xalanc::append(), and xalanc::operator<<().
|
inline |
Definition at line 694 of file XalanDOMString.hpp.
References xalanc::c_str(), and xalanc::length().
Referenced by xalanc::DOMStringHashFunction::operator()(), and xalanc::DOMStringPointerHashFunction::operator()().
|
inlinestatic |
Definition at line 700 of file XalanDOMString.hpp.
void xalanc::XalanDOMString::insert | ( | iterator | theInsertPosition, |
iterator | theFirstPosition, | ||
iterator | theLastPosition | ||
) |
void xalanc::XalanDOMString::insert | ( | iterator | thePosition, |
size_type | theCount, | ||
XalanDOMChar | theChar | ||
) |
|
inline |
Definition at line 563 of file XalanDOMString.hpp.
References xalanc::insert(), and xalanc::length().
XalanDOMString& xalanc::XalanDOMString::insert | ( | size_type | thePosition, |
const XalanDOMChar * | theString, | ||
size_type | theCount | ||
) |
|
inline |
Definition at line 539 of file XalanDOMString.hpp.
References c_str(), xalanc::insert(), and length().
Referenced by xalanc::insert().
XalanDOMString& xalanc::XalanDOMString::insert | ( | size_type | thePosition, |
size_type | theCount, | ||
XalanDOMChar | theChar | ||
) |
|
inline |
Definition at line 547 of file XalanDOMString.hpp.
References c_str(), and xalanc::insert().
|
inlineprotected |
Definition at line 773 of file XalanDOMString.hpp.
|
inline |
Definition at line 209 of file XalanDOMString.hpp.
Referenced by xalanc::ResultNamespacesStack::addDeclaration(), xalanc::XalanNamespacesStack::addDeclaration(), xalanc::XSLTEngineImpl::addResultNamespaceDecl(), append(), xalanc::XObject::boolean(), xalanc::collationCompare(), compare(), xalanc::compare(), xalanc::compareIgnoreCaseASCII(), xalanc::endsWith(), xalanc::equals(), xalanc::equalsIgnoreCaseASCII(), xalanc::URISupport::getURLStringFromString(), xalanc::indexOf(), insert(), xalanc::length(), xalanc::XalanParsedURI::parse(), xalanc::XalanParsedURI::resolve(), xalanc::startsWith(), xalanc::XObject::string(), xalanc::XalanUTF16Writer::write(), xalanc::XalanUTF8Writer::write(), xalanc::XalanOtherEncodingWriter< Predicate, ConstantsType >::write(), xalanc::XercesWrapperHelper::XalanDOMStringToXercesDOMString(), xalanc::XercesBridgeHelper::XalanDOMStringToXercesDOMString(), and xalanc::XalanParsedURI::XalanParsedURI().
|
static |
|
static |
|
inline |
Definition at line 217 of file XalanDOMString.hpp.
|
inline |
Definition at line 376 of file XalanDOMString.hpp.
References xalanc::append().
|
inline |
Definition at line 370 of file XalanDOMString.hpp.
References xalanc::append().
|
inline |
Definition at line 382 of file XalanDOMString.hpp.
References xalanc::append().
|
inline |
Definition at line 111 of file XalanDOMString.hpp.
References xalanc::assign().
|
inline |
Definition at line 105 of file XalanDOMString.hpp.
References xalanc::assign().
|
inline |
Definition at line 99 of file XalanDOMString.hpp.
References xalanc::assign().
|
inline |
Definition at line 117 of file XalanDOMString.hpp.
References xalanc::assign().
Definition at line 320 of file XalanDOMString.hpp.
|
inline |
Definition at line 312 of file XalanDOMString.hpp.
|
inline |
Definition at line 529 of file XalanDOMString.hpp.
References xalanc::append().
Referenced by xalanc::XalanFormatterWriter::formatNumericCharacterReference().
|
inline |
Definition at line 155 of file XalanDOMString.hpp.
|
inline |
Definition at line 170 of file XalanDOMString.hpp.
|
inline |
Definition at line 185 of file XalanDOMString.hpp.
|
inline |
Definition at line 193 of file XalanDOMString.hpp.
|
inline |
Definition at line 249 of file XalanDOMString.hpp.
Referenced by xalanc::reserve().
void xalanc::XalanDOMString::reset | ( | MemoryManager & | theManager, |
const char * | theString | ||
) |
void xalanc::XalanDOMString::reset | ( | MemoryManager & | theManager, |
const XalanDOMChar * | theString | ||
) |
|
inline |
Definition at line 230 of file XalanDOMString.hpp.
void xalanc::XalanDOMString::resize | ( | size_type | theCount, |
XalanDOMChar | theChar | ||
) |
|
inline |
Definition at line 201 of file XalanDOMString.hpp.
Referenced by xalanc::XSLException::defaultFormat(), and xalanc::EnumerateDirectory().
|
inline |
Definition at line 595 of file XalanDOMString.hpp.
References assign(), and xalanc::length().
Referenced by xalanc::EnumerateDirectory().
|
inline |
Definition at line 360 of file XalanDOMString.hpp.
References xalanc::swap().
Referenced by xalanc::releaseMemory().
void xalanc::XalanDOMString::transcode | ( | CharVectorType & | theResult | ) | const |
Transcode the string to the local code page.
If the string cannot be properly transcoded, and the transcoder can detect the error a TranscodingError exception is thrown.
theResult | A CharVectorType instance for the transcoded string. The string is null-terminated. |
const typedef XalanDOMChar& xalanc::XalanDOMString::const_reference |
Definition at line 55 of file XalanDOMString.hpp.
|
static |
Definition at line 64 of file XalanDOMString.hpp.
Copyright © 1999-2020 The Apache Software Foundation. All Rights Reserved.
Generated on Sun May 31 2020 10:37:34 for Xalan-C++ API Reference by 1.8.17