18#if !defined(XALANDOMSTRING_HEADER_GUARD_1357924680)
19#define XALANDOMSTRING_HEADER_GUARD_1357924680
127 return m_data.begin();
135 return m_data.begin();
143 return m_data.empty() ==
true ? m_data.end() : m_data.end() - 1;
151 return m_data.empty() ==
true ? m_data.end() : m_data.end() - 1;
161 if (m_data.empty() ==
false)
169 const_reverse_iterator
176 if (m_data.empty() ==
false)
189 return m_data.rend();
192 const_reverse_iterator
197 return m_data.rend();
261 m_data.erase(m_data.begin(), m_data.end());
291 m_size = m_data.size() - 1;
308 return m_size == 0 ?
true :
false;
348 return m_data.empty() ==
true ? &s_empty : &m_data[0];
690 return m_data.getMemoryManager();
776 assert((m_data.empty() ==
true && m_size == 0) || m_size == m_data.size() - 1);
777 assert(m_data.empty() ==
true || m_data.back() == 0);
791 return m_data.empty() ==
true ? m_data.end() : m_data.end() - 1;
799 return m_data.empty() ==
true ? m_data.end() : m_data.end() - 1;
818#if defined (XALAN_DEVELOPMENT)
1054inline XalanDOMString&
1056 const XalanDOMString& theLHS,
1057 const XalanDOMString& theRHS,
1058 XalanDOMString& result)
1060 result.assign(theLHS);
1062 return result += theRHS;
1067inline XalanDOMString&
1069 const XalanDOMString& theLHS,
1070 const XalanDOMChar* theRHS,
1071 XalanDOMString& result)
1073 result.assign(theLHS);
1075 return result += theRHS;
1080inline XalanDOMString&
1082 const XalanDOMChar* theLHS,
1083 const XalanDOMString& theRHS,
1084 XalanDOMString& result)
1086 result.assign(theLHS);
1088 return result += theRHS;
1093inline const XalanDOMString&
1096 const XalanDOMString& theRHS,
1097 XalanDOMString& result)
1099 result.assign(theLHS);
1101 result.append(theRHS);
1108inline const XalanDOMString&
1110 const XalanDOMString& theLHS,
1112 XalanDOMString& result)
1114 result.assign(theLHS);
1116 result.append(theRHS);
1144TranscodeToLocalCodePage(
1148 bool terminate =
false);
1164TranscodeToLocalCodePage(
1179#if !defined(XALAN_DEVELOPMENT)
1201TranscodeToLocalCodePage(
1204 bool terminate =
false);
1216TranscodeToLocalCodePage(
1230#if !defined(XALAN_DEVELOPMENT)
1256 bool terminate =
false)
1276TranscodeToLocalCodePage(
1292#if !defined(XALAN_DEVELOPMENT)
1314inline const XalanDOMString&
1339TranscodeFromLocalCodePage(
1343 bool terminate =
false);
1356TranscodeFromLocalCodePage(
1359 bool terminate =
false);
1374TranscodeFromLocalCodePage(
1379 bool terminate =
false);
1390TranscodeFromLocalCodePage(
#define XALAN_DOM_EXPORT_FUNCTION(T)
#define XALAN_DEFAULT_CONSTRUCTOR_MEMMGR
#define XALAN_DEFAULT_MEMMGR
#define XALAN_USES_MEMORY_MANAGER(Type)
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
virtual ~TranscodingError()
const_iterator getBackInsertIterator() const
const XalanDOMChar * c_str() const
void push_back(XalanDOMChar theChar)
XalanDOMString & insert(size_type thePosition, const XalanDOMString &theString)
void transcode(CharVectorType &theResult) const
Transcode the string to the local code page.
XalanDOMString(const char *theString, MemoryManager &theManager XALAN_DEFAULT_MEMMGR, size_type theCount=size_type(npos))
XalanDOMString & operator+=(const XalanDOMChar *theString)
const XalanDOMChar * data() const
XalanDOMString & assign(const XalanDOMString &theSource)
size_type max_size() const
int compare(const XalanDOMChar *theString) const
int compare(size_type thePosition1, size_type theCount1, const XalanDOMString &theString) const
const_reference at(size_type theIndex) const
XalanDOMString & assign(iterator theFirstPosition, iterator theLastPosition)
static bool equals(const XalanDOMString &theLHS, const XalanDOMString &theRHS)
int compare(size_type thePosition1, size_type theCount1, const XalanDOMString &theString, size_type thePosition2, size_type theCount2) const
XalanDOMString & assign(const XalanDOMString &theSource, size_type thePosition, size_type theCount)
XalanDOMCharVectorType::iterator iterator
XalanDOMString & append(const char *theString)
iterator erase(iterator theFirst, iterator theLast)
XalanDOMString & operator+=(const XalanDOMString &theSource)
XalanDOMString & operator=(const char *theRHS)
iterator insert(iterator thePosition, XalanDOMChar theChar)
const_iterator end() const
XalanDOMString & assign(const XalanDOMChar *theSource, size_type theCount)
XalanDOMString(const XalanDOMChar *theString, MemoryManager &theManager XALAN_DEFAULT_MEMMGR, size_type theCount=size_type(npos))
XalanDOMString & substr(XalanDOMString &theSubstring, size_type thePosition=0, size_type theCount=size_type(npos)) const
iterator getBackInsertIterator()
reverse_iterator rbegin()
XalanDOMString & operator=(const XalanDOMString &theRHS)
XalanDOMString & append(const XalanDOMString &theSource)
XalanDOMString & append(const XalanDOMString &theSource, size_type thePosition, size_type theCount)
XalanDOMString & insert(size_type thePosition1, const XalanDOMString &theString, size_type thePosition2, size_type theCount)
const_reverse_iterator rbegin() const
static bool equals(const XalanDOMString &theLHS, const XalanDOMChar *theRHS)
static bool equals(const XalanDOMChar *theLHS, size_type theLHSLength, const XalanDOMChar *theRHS, size_type theRHSLength)
static size_type length(const char *theString)
iterator getIteratorForPosition(size_type thePosition)
XalanDOMString & append(const char *theString, size_type theCount)
XalanDOMString & insert(size_type thePosition, const XalanDOMChar *theString)
XalanDOMString(MemoryManager &theManager XALAN_DEFAULT_CONSTRUCTOR_MEMMGR)
XalanDOMString & erase(size_type theStartPosition=0, size_type theCount=size_type(npos))
XalanVector< char > CharVectorType
size_type capacity() const
static size_t hash(const XalanDOMChar *theString, size_type theLength)
const_reverse_iterator rend() const
void reserve(size_type theCount=0)
iterator erase(iterator thePosition)
XalanDOMString & assign(size_type theCount, XalanDOMChar theChar)
XalanDOMString & insert(size_type thePosition, size_type theCount, XalanDOMChar theChar)
XalanDOMString & operator+=(XalanDOMChar theChar)
int compare(size_type thePosition1, size_type theCount1, const XalanDOMChar *theString, size_type theCount2=size_type(npos)) const
void insert(iterator thePosition, size_type theCount, XalanDOMChar theChar)
XalanDOMString(size_type theCount, XalanDOMChar theChar, MemoryManager &theManager XALAN_DEFAULT_MEMMGR)
const_reference operator[](size_type theIndex) const
const XalanDOMChar & const_reference
XalanDOMString & append(const XalanDOMChar *theString)
XalanDOMString & assign(const XalanDOMChar *theSource)
XalanVector< XalanDOMChar > XalanDOMCharVectorType
void insert(iterator theInsertPosition, iterator theFirstPosition, iterator theLastPosition)
void reset(MemoryManager &theManager, const char *theString)
MemoryManager & getMemoryManager()
static size_type length(const XalanDOMChar *theString)
XalanDOMString & operator=(XalanDOMChar theRHS)
XalanDOMString & append(size_type theCount, XalanDOMChar theChar)
XalanVector< wchar_t > WideCharVectorType
void swap(XalanDOMString &theOther)
const_iterator begin() const
void resize(size_type theCount)
XalanDOMString & operator=(const XalanDOMChar *theRHS)
static bool equals(const XalanDOMChar *theLHS, const XalanDOMChar *theRHS)
static const size_type npos
XalanDOMCharVectorType::reverse_iterator reverse_iterator
const_iterator getIteratorForPosition(size_type thePosition) const
XalanDOMString & assign(const char *theSource, size_type theCount)
XalanDOMString & append(const XalanDOMChar *theString, size_type theCount)
XalanDOMString & assign(const char *theSource)
reference at(size_type theIndex)
XalanDOMCharVectorType::const_reverse_iterator const_reverse_iterator
reference operator[](size_type theIndex)
XalanDOMString & insert(size_type thePosition, const XalanDOMChar *theString, size_type theCount)
XalanDOMString * clone(MemoryManager &theManager)
int compare(const XalanDOMString &theString) const
static bool equals(const XalanDOMChar *theLHS, const XalanDOMString &theRHS)
void reset(MemoryManager &theManager, const XalanDOMChar *theString)
XalanDOMCharVectorType::const_iterator const_iterator
XalanDOMString(const XalanDOMString &theSource, MemoryManager &theManager XALAN_DEFAULT_CONSTRUCTOR_MEMMGR, size_type theStartPosition=0, size_type theCount=size_type(npos))
void resize(size_type theCount, XalanDOMChar theChar)
const_reverse_iterator_ const_reverse_iterator
reverse_iterator_ reverse_iterator
XalanDOMString & insert(XalanDOMString &theString, XalanDOMString::size_type thePosition, const XalanDOMString &theStringToInsert)
Insert a string into another string.
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 p...
void erase(XalanDOMString &theString)
Remove all elements from target string.
XalanDOMString::size_type length(const XalanDOMString &theString)
Get the length of a XalanDOMString.
XalanDOMString & assign(XalanDOMString &theString, const XalanDOMString &theStringToAssign)
Assign one string to another.
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.
compare(const CharVectorType &theLHS, const CharVectorType &theRHS)
Compare the contents of two strings.
bool operator==(const XalanVector< Type > &theLHS, const XalanVector< Type > &theRHS)
bool operator!=(const XalanVector< Type > &theLHS, const XalanVector< Type > &theRHS)
const char * c_str(const CharVectorType &theString)
Get the underlying representation of the target CharVectorType as a null-terminated string.
XalanDOMString & append(XalanDOMString &theString, const XalanDOMString &theStringToAppend)
Concatenate two strings.
equals(const XalanDOMChar *theLHS, const XalanDOMChar *theRHS, XalanDOMString::size_type theLength)
Compare the contents of two arrays for equality.
Equals functor for DOMStrings.
Hash functor for DOMStrings.
Less than functor for DOMStrings.
Not equals functor for DOMStrings.
Equal to functor for DOMStrings.
Hash functor for DOMStrings.
Less than functor for DOMStrings.
DOMStringHashFunction Hasher
std::equal_to< XalanDOMString > Comparator
pointer_equal< XalanDOMString > Comparator
DOMStringPointerHashFunction Hasher
pointer_equal< XalanDOMString > Comparator
DOMStringPointerHashFunction Hasher