18 #if !defined(XALANDOMSTRING_HEADER_GUARD_1357924680)
19 #define XALANDOMSTRING_HEADER_GUARD_1357924680
41 XALAN_CPP_NAMESPACE_BEGIN
64 #if defined(XALAN_INLINE_INITIALIZATION)
74 const char* theString,
86 const XalanDOMChar* theString,
87 MemoryManager& theManager XALAN_DEFAULT_MEMMGR,
93 MemoryManager& theManager XALAN_DEFAULT_MEMMGR);
96 clone(MemoryManager& theManager);
131 return m_data.begin();
139 return m_data.begin();
147 return m_data.empty() ==
true ? m_data.end() : m_data.end() - 1;
155 return m_data.empty() ==
true ? m_data.end() : m_data.end() - 1;
165 if (m_data.empty() ==
false)
173 const_reverse_iterator
180 if (m_data.empty() ==
false)
193 return m_data.rend();
196 const_reverse_iterator
201 return m_data.rend();
231 XalanDOMChar theChar);
238 resize(theCount, XalanDOMChar(0));
249 return theCapacity == 0 ? 0 :
size_type(theCapacity - 1);
257 m_data.reserve(theCount + 1);
265 m_data.erase(m_data.begin(), m_data.end());
277 m_data.erase(thePosition);
293 m_data.erase(theFirst, theLast);
295 m_size = m_data.size() - 1;
312 return m_size == 0 ?
true :
false;
320 return m_data[theIndex];
328 return m_data[theIndex];
336 return m_data.at(theIndex);
344 return m_data.at(theIndex);
352 return m_data.empty() ==
true ? &s_empty : &m_data[0];
368 m_data.swap(theOther.m_data);
370 #if defined(XALAN_NO_STD_NAMESPACE)
371 ::swap(m_size, theOther.m_size);
411 const XalanDOMChar* theSource,
420 return append(theSource, theCount);
437 const char* theSource,
446 return append(theSource, theCount);
460 if (&theSource !=
this)
462 m_data = theSource.m_data;
464 m_size = theSource.m_size;
475 XalanDOMChar theChar)
483 return append(theCount, theChar);
488 iterator theFirstPosition,
489 iterator theLastPosition);
503 assert(thePosition < theSource.
length() &&
504 (theCount ==
size_type(npos) || thePosition + theCount <= theSource.
length()));
506 return append(theSource.
c_str() + thePosition, theCount);
511 const XalanDOMChar* theString,
522 const char* theString,
534 XalanDOMChar theChar);
561 return insert(thePosition1, theString.
c_str() + thePosition2, theCount);
567 const XalanDOMChar* theString,
573 const XalanDOMChar* theString)
575 return insert(thePosition, theString,
length(theString));
582 XalanDOMChar theChar);
586 iterator thePosition,
587 XalanDOMChar theChar);
591 iterator thePosition,
593 XalanDOMChar theChar);
597 iterator theInsertPosition,
598 iterator theFirstPosition,
599 iterator theLastPosition);
609 (thePosition + theCount <=
length()));
613 return theSubstring.
assign(
616 theCount == npos ?
length() : theCount);
648 return compare(thePosition1, theCount1, theString.
c_str() + thePosition2, theCount2);
652 compare(
const XalanDOMChar* theString)
const;
658 const XalanDOMChar* theString,
663 reset(MemoryManager& theManager,
const char* theString);
666 reset(MemoryManager& theManager,
const XalanDOMChar* theString);
698 return m_data.getMemoryManager();
709 const XalanDOMChar* theString,
712 assert(theString != 0);
719 const XalanDOMChar* theLHS,
721 const XalanDOMChar* theRHS,
726 const XalanDOMChar* theLHS,
727 const XalanDOMChar* theRHS)
740 const XalanDOMChar* theRHS)
747 const XalanDOMChar* theLHS,
761 length(
const XalanDOMChar* theString);
771 length(
const char* theString);
784 assert((m_data.empty() ==
true && m_size == 0) || m_size == m_data.size() - 1);
785 assert(m_data.empty() ==
true || m_data.back() == 0);
799 return m_data.empty() ==
true ? m_data.end() : m_data.end() - 1;
807 return m_data.empty() ==
true ? m_data.end() : m_data.end() - 1;
815 return m_data.begin() + thePosition;
823 return m_data.begin() + thePosition;
826 #if defined (XALAN_DEVELOPMENT)
839 static const XalanDOMChar s_empty;
855 return theKey.hash();
872 assert (theKey != 0);
874 return theKey->hash();
902 #if defined(XALAN_NO_STD_NAMESPACE)
910 second_argument_type theRHS)
const
925 #if defined(XALAN_NO_STD_NAMESPACE)
933 second_argument_type theRHS)
const
948 #if defined(XALAN_NO_STD_NAMESPACE)
956 second_argument_type theRHS)
const
958 return theLHS.compare(theRHS) < 0 ?
true :
false;
974 second_argument_type theRHS)
const
976 assert(theLHS != 0 && theRHS != 0);
990 #if defined(XALAN_NO_STD_NAMESPACE)
998 second_argument_type theRHS)
const
1000 assert(theLHS != 0 && theRHS != 0);
1002 return theLHS->compare(*theRHS) < 0 ?
true :
false;
1030 const XalanDOMChar* theRHS)
1039 const XalanDOMChar* theLHS,
1053 return !(theLHS == theRHS);
1060 const XalanDOMChar* theLHS,
1063 return !(theLHS == theRHS);
1071 const XalanDOMChar* theRHS)
1073 return !(theRHS == theLHS);
1086 return result += theRHS;
1094 const XalanDOMChar* theRHS,
1099 return result += theRHS;
1106 const XalanDOMChar* theLHS,
1112 return result += theRHS;
1169 const XalanDOMChar* theSourceString,
1171 CharVectorType& targetVector,
1172 bool terminate = false);
1189 const XalanDOMChar* theSourceString,
1191 CharVectorType& targetVector,
1193 char theSubstitutionChar);
1203 #if !defined(XALAN_DEVELOPMENT)
1206 const char* theSourceString,
1226 const XalanDOMChar* theSourceString,
1227 CharVectorType& targetVector,
1228 bool terminate = false);
1241 const XalanDOMChar* theSourceString,
1242 CharVectorType& targetVector,
1244 char theSubstitutionChar);
1254 #if !defined(XALAN_DEVELOPMENT)
1255 inline const CharVectorType
1258 CharVectorType theResult;
1279 CharVectorType& theTargetVector,
1280 bool terminate =
false)
1283 theSourceString.
c_str(),
1302 CharVectorType& theTargetVector,
1304 char theSubstitutionChar);
1316 #if !defined(XALAN_DEVELOPMENT)
1317 inline const CharVectorType
1320 CharVectorType theResult;
1340 const char* theSourceString,
1344 theResult.
assign(theSourceString, theSourceStringLength);
1364 const
char* theSourceString,
1366 XalanDOMCharVectorType& theTargetVector,
1367 bool terminate = false);
1381 const
char* theSourceString,
1382 XalanDOMCharVectorType& theTargetVector,
1383 bool terminate = false);
1399 const
char* theSourceString,
1401 bool theSourceStringIsNullTerminated,
1402 XalanDOMCharVectorType& theTargetVector,
1403 bool terminate = false);
1415 const CharVectorType& theSourceString,
1423 XALAN_CPP_NAMESPACE_END
1427 #endif // !defined(XALANDOMSTRING_HEADER_GUARD_1357924680)