18 #if !defined(DOMSTRINGHELPER_HEADER_GUARD_1357924680)
19 #define DOMSTRINGHELPER_HEADER_GUARD_1357924680
31 #if defined(XALAN_CLASSIC_IOSTREAMS)
56 XALAN_CPP_NAMESPACE_BEGIN
68 template<class InputIteratorType, class OutputIteratorType>
69 inline OutputIteratorType
71 InputIteratorType begin,
72 InputIteratorType end,
73 OutputIteratorType iterator)
75 return XALAN_STD_QUALIFIER copy(begin, end, iterator);
80 template<
class InputIteratorType,
class OutputIteratorType,
class UnaryFunction>
81 inline OutputIteratorType
83 InputIteratorType begin,
84 InputIteratorType end,
85 OutputIteratorType iterator,
86 UnaryFunction
function)
88 return XALAN_STD_QUALIFIER transform(begin, end, iterator);
102 inline const XalanDOMChar*
105 return theString.
c_str();
120 if (theString.
empty() ==
true)
126 const char*
const ptr = &theString[0];
128 assert(ptr[theString.
size() - 1] ==
'\0');
153 inline const XalanDOMChar*
170 inline const XalanDOMChar*
173 return theString.
c_str();
186 inline const XalanDOMChar*
206 return theString.
empty() ==
true ? 0 : &theString[0];
241 return theString.
length();
256 assert(theString != 0);
258 const XalanDOMChar* theBufferPointer = theString;
260 while(*theBufferPointer != 0)
279 assert(theString != 0);
313 const XalanDOMChar* theString,
314 XalanDOMChar theChar)
316 assert(theString != 0);
318 const XalanDOMChar* thePointer = theString;
320 while(*thePointer != theChar && *thePointer != 0)
342 const XalanDOMChar* theString,
344 XalanDOMChar theChar)
346 assert(theString != 0);
348 const XalanDOMChar* thePointer = theString;
349 const XalanDOMChar*
const theEndPointer = theString + theStringLength;
351 while(*thePointer != theChar && thePointer != theEndPointer)
373 XalanDOMChar theChar)
393 const XalanDOMChar* theString,
395 const XalanDOMChar* theSubstring,
411 const XalanDOMChar* theString,
412 const XalanDOMChar* theSubstring)
414 assert(theString != 0 && theSubstring != 0);
449 const XalanDOMChar* theString,
450 XalanDOMChar theChar);
466 XalanDOMChar theChar)
484 const XalanDOMChar* theString,
486 const XalanDOMChar* theSubstring,
500 const XalanDOMChar* theString,
501 const XalanDOMChar* theSubstring)
503 assert(theString != 0 && theSubstring != 0);
519 const XalanDOMChar* theString,
522 assert(theString != 0);
527 theSubstring.
c_str(),
543 const XalanDOMChar* theSubstring)
545 assert(theSubstring != 0);
567 const XalanDOMChar* theSubstring,
570 assert(theSubstring != 0);
596 theSubstring.
c_str(),
611 const XalanDOMChar* theString,
613 const XalanDOMChar* theSubstring,
627 const XalanDOMChar* theString,
628 const XalanDOMChar* theSubstring)
630 assert(theString != 0 && theSubstring != 0);
656 theSubstring.
c_str(),
671 const
void* theValue,
684 initialize(MemoryManager& theMemoryManager);
693 MemberFunctionPtr
function);
699 MemberFunctionPtr
function);
705 MemberFunctionPtr
function);
761 unsigned long theValue,
765 static_cast<XALAN_UINT64>(theValue),
784 static_cast<XALAN_INT64>(theValue),
799 unsigned int theValue,
803 static_cast<XALAN_UINT64>(theValue),
822 static_cast<XALAN_INT64>(theValue),
837 unsigned short theValue,
841 static_cast<XALAN_UINT64>(theValue),
860 static_cast<XALAN_INT64>(theValue),
903 unsigned long theValue,
907 static_cast<XALAN_UINT64>(theValue),
926 static_cast<XALAN_INT64>(theValue),
941 unsigned int theValue,
945 static_cast<XALAN_UINT64>(theValue),
964 static_cast<XALAN_INT64>(theValue),
979 unsigned short theValue,
983 static_cast<XALAN_UINT64>(theValue),
1002 static_cast<XALAN_INT64>(theValue),
1050 const XalanDOMChar* theString,
1051 MemoryManager& theMemoryManager);
1089 inline unsigned long
1107 MemoryManager& theMemoryManager)
1139 #if defined(XALAN_NO_STD_NAMESPACE)
1142 std::ostream& theStream,
1158 const XalanDOMChar* theString);
1171 #if defined(XALAN_NO_STD_NAMESPACE)
1174 std::ostream& theStream,
1176 const XalanDOMChar* theString,
1177 MemoryManager& theMemoryManager);
1193 if (theString.
empty() ==
false)
1216 std::ostream& theStream,
1219 MemoryManager& theMemoryManager)
1257 #if defined(XALAN_NO_STD_NAMESPACE)
1262 inline std::ostream&
1264 std::ostream& theStream,
1287 const XalanDOMChar* theString)
1305 #if defined(XALAN_NO_STD_NAMESPACE)
1310 inline std::ostream&
1312 std::ostream& theStream,
1314 const XalanDOMChar* theString)
1353 #if defined(XALAN_NO_STD_NAMESPACE)
1358 inline std::ostream&
1360 std::ostream& theStream,
1381 #if defined(XALAN_NO_STD_NAMESPACE)
1386 inline std::ostream&
1388 std::ostream& theStream,
1395 theString.getMemoryManager());
1416 return theString[theIndex];
1481 const XalanDOMChar* theString,
1611 const XalanDOMChar* theString,
1656 const XalanDOMChar* theString,
1724 const XalanDOMChar* theLHS,
1726 const XalanDOMChar* theRHS,
1744 const XalanDOMChar* theLHS,
1745 const XalanDOMChar* theRHS)
1792 const XalanDOMChar* theLHS,
1818 const XalanDOMChar* theRHS)
1846 const XalanDOMChar* theLHS,
1848 const XalanDOMChar* theRHS,
1868 const XalanDOMChar* theLHS,
1869 const XalanDOMChar* theRHS)
1921 const XalanDOMChar* theRHS)
1947 const XalanDOMChar* theLHS,
1971 const XalanDOMChar* theLHS,
1973 const XalanDOMChar* theRHS,
1990 const XalanDOMChar* theLHS,
1991 const XalanDOMChar* theRHS);
2025 const XalanDOMChar* theLHS,
2044 const XalanDOMChar* theRHS)
2065 const XalanDOMChar* theLHS,
2066 const XalanDOMChar* theRHS,
2082 const XalanDOMChar* theLHS,
2084 const XalanDOMChar* theRHS,
2087 return theLHSLength != theRHSLength ?
false :
equals(theLHS, theRHS, theLHSLength);
2101 const XalanDOMChar* theLHS,
2102 const XalanDOMChar* theRHS)
2106 return theLHSLength !=
length(theRHS) ?
false :
equals(theLHS, theRHS, theLHSLength);
2123 return theLHS == theRHS;
2137 const XalanDOMChar* theLHS,
2140 assert(theLHS != 0);
2143 return theRHS == theLHS;
2157 const XalanDOMChar* theRHS)
2159 return equals(theRHS, theLHS);
2175 const XalanDOMChar* theRHS,
2178 return theRHSLength != theLHS.
length() ?
false :
equals(theLHS.
c_str(), theRHSLength, theRHS, theRHSLength);
2194 const XalanDOMChar* theLHS,
2195 const XalanDOMChar* theRHS,
2212 const XalanDOMChar* theLHS,
2214 const XalanDOMChar* theRHS,
2217 return theLHSLength != theRHSLength ?
false :
2233 const XalanDOMChar* theLHS,
2234 const XalanDOMChar* theRHS)
2238 return theLength !=
length(theRHS) ?
false :
2259 return theLength != theRHS.
length() ?
false :
2278 const XalanDOMChar* theLHS,
2283 return theRHSLength !=
length(theLHS) ?
false :
2303 const XalanDOMChar* theRHS)
2324 return compare(theLHS, theRHS) < 0 ?
true :
false;
2343 return compare(theLHS, theRHS) < 0 ?
true :
false;
2363 theString = theStringToAssign;
2383 const XalanDOMChar* theStringToAssign,
2388 theString.
assign(theStringToAssign);
2392 theString.
assign(theStringToAssign, theStringToAssignLength);
2414 theString.
append(theStringToAppend);
2434 const XalanDOMChar* theStringToAppend,
2437 assert(theStringToAppend != 0);
2441 theString.
append(theStringToAppend);
2445 theString.
append(theStringToAppend, theStringToAppendLength);
2466 const char* theStringToAppend,
2492 const XalanDOMChar theCharToAppend)
2494 theString.
append(1, theCharToAppend);
2513 char theCharToAppend)
2516 char theTempBuffer[] = { theCharToAppend,
'\0' };
2518 return append(theString, theTempBuffer);
2539 theString.
insert(thePosition, theStringToInsert);
2560 const XalanDOMChar* theStringToInsert)
2562 theString.
insert(thePosition, theStringToInsert);
2629 const XalanDOMChar* theString,
2636 const
char* theString,
2653 bool fTranscode = true);
2686 #if defined(XALAN_NO_STD_NAMESPACE)
2687 struct c_wstr_functor :
public unary_function<XalanDOMString, const XalanDOMChar*>
2689 struct
c_wstr_functor :
public std::unary_function<XalanDOMString, const XalanDOMChar*>
2695 return theString.c_str();
2708 #if defined(XALAN_NO_STD_NAMESPACE)
2716 second_argument_type theRHS)
const
2731 #if defined(XALAN_NO_STD_NAMESPACE)
2739 second_argument_type theRHS)
const
2741 return compare(theLHS, theRHS) <= 0 ?
true :
false;
2754 #if defined(XALAN_NO_STD_NAMESPACE)
2762 second_argument_type theRHS)
const
2764 return compare(theLHS, theRHS) > 0 ?
true :
false;
2777 #if defined(XALAN_NO_STD_NAMESPACE)
2785 second_argument_type theRHS)
const
2787 return compare(theLHS, theRHS) >= 0 ?
true :
false;
2798 #if defined(XALAN_NO_STD_NAMESPACE)
2814 first_argument_type theLHS,
2815 second_argument_type theRHS)
const
2844 const XalanDOMChar ch[],
2859 assert(theString != 0);
2866 XALAN_CPP_NAMESPACE_END
2870 #endif // DOMSTRINGHELPER_HEADER_GUARD_1357924680