18#if !defined(DOMSTRINGHELPER_HEADER_GUARD_1357924680)
19#define DOMSTRINGHELPER_HEADER_GUARD_1357924680
56using xercesc::MemoryManager;
60class XalanOutputStream;
64template<
class InputIteratorType,
class OutputIteratorType>
65inline OutputIteratorType
71 return std::copy(begin, end, iterator);
76template<
class InputIteratorType,
class OutputIteratorType,
class UnaryFunction>
77inline OutputIteratorType
84 return std::transform(begin, end, iterator, function);
98inline const XalanDOMChar*
149inline const XalanDOMChar*
166inline const XalanDOMChar*
182inline const XalanDOMChar*
234inline XalanDOMString::size_type
249inline XalanDOMString::size_type
272inline XalanDOMString::size_type
277 return XalanDOMString::length(
theString);
307inline XalanDOMString::size_type
336inline XalanDOMString::size_type
366inline XalanDOMString::size_type
689 MemberFunctionPtr function);
695 MemberFunctionPtr function);
701 MemberFunctionPtr function);
774inline XalanDOMString&
793inline XalanDOMString&
812inline XalanDOMString&
878inline XalanDOMString&
897inline XalanDOMString&
916inline XalanDOMString&
1215 XalanMemMgrs::getDefault());
1257 XalanMemMgrs::getDefault());
1314 return XalanXMLChar::isWhitespace(
theChar);
1328 return XalanXMLChar::isDigit(
theChar);
1342 return XalanXMLChar::isDigit(
theChar) ||
1343 XalanXMLChar::isLetter(
theChar);
1423 if (
theChar >= XalanUnicode::charLetter_A &&
theChar <= XalanUnicode::charLetter_Z)
1446 if (
theChar >= XalanUnicode::charLetter_a &&
theChar <= XalanUnicode::charLetter_z)
1468 if (
theChar >= XalanUnicode::charLetter_A &&
theChar <= XalanUnicode::charLetter_Z)
1472 else if (
theChar >= XalanUnicode::charLetter_a &&
theChar <= XalanUnicode::charLetter_z)
1729compareIgnoreCaseASCII(
1751compareIgnoreCaseASCII(
2077equalsIgnoreCaseASCII(
2095equalsIgnoreCaseASCII(
2242inline XalanDOMString&
2264inline XalanDOMString&
2293inline XalanDOMString&
2315inline XalanDOMString&
2347inline XalanDOMString&
2373inline XalanDOMString&
2394inline XalanDOMString&
2417inline XalanDOMString&
2440inline XalanDOMString&
2512CopyWideStringToVector(
2534MakeXalanDOMCharVector(
std::ostream & operator<<(std::ostream &target, const StrX &toDump)
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
static void NumberToCharacters(double theValue, FormatterListener &formatterListener, MemberFunctionPtr function)
static void NumberToCharacters(XMLInt32 theValue, FormatterListener &formatterListener, MemberFunctionPtr function)
static void initialize(MemoryManager &theMemoryManager)
static void NumberToCharacters(XMLInt64 theValue, FormatterListener &formatterListener, MemberFunctionPtr function)
void swap(XalanDOMString &theOther)
MemoryManager * getMemoryManager()
XalanDOMString::size_type indexOf(const XalanDOMChar *theString, XalanDOMChar theChar)
Simulates the java String method indexOf().
XalanDOMString & insert(XalanDOMString &theString, XalanDOMString::size_type thePosition, const XalanDOMString &theStringToInsert)
Insert a string into another string.
void releaseMemory(XalanDOMString &theString, MemoryManager &theManager)
Remove all elements from target string and frees all allocated memory.
WideStringToLong(const XalanDOMChar *theString)
Converts a wide string into a long value.
collationCompare(const XalanDOMChar *theLHS, XalanDOMString::size_type theLHSLength, const XalanDOMChar *theRHS, XalanDOMString::size_type theRHSLength)
Compare the contents of two character arrays.
void erase(XalanDOMString &theString)
Remove all elements from target string.
XalanDOMChar toUpperASCII(XalanDOMChar theChar)
Converts ASCII alphabetic characters from lower case to upper case.
XalanDOMString::size_type length(const XalanDOMString &theString)
Get the length of a XalanDOMString.
bool isXMLWhitespace(XalanDOMChar theChar)
Determines whether character represents white space.
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.
XalanDOMChar flipCaseASCII(XalanDOMChar theChar)
Flips the case to of the supplied character.
unsigned long DOMStringToUnsignedLong(const XalanDOMString &theString)
Converts a XalanDOMString into a long value.
const XalanDOMChar * toCharArray(const XalanDOMString &theString)
Get the underlying representation of the target XalanDOMString as an array of XalanDOMChar,...
MakeXalanDOMCharVector(const char *data, XalanDOMCharVectorType &result, bool fTranscode=true)
Utility function to make a null-terminated vector of XMLChs, from a null-terminated array of chars,...
const XalanDOMChar * c_wstr(const XalanDOMString &theString)
Get the underlying representation of the target XalanDOMString as a null-terminated string.
bool isEmpty(const XalanDOMString &str)
Determines if the target string contains any elements.
compare(const CharVectorType &theLHS, const CharVectorType &theRHS)
Compare the contents of two strings.
OutputString(XalanOutputStream &theStream, const CharVectorType &theString)
Outputs the target string to the specified stream.
void reserve(XalanDOMString &theString, XalanDOMString::size_type theCount)
Reserve some space in the string for more efficient concatenation...
bool isXMLLetterOrDigit(XalanDOMChar theChar)
Determines whether character represents a letter or digit.
WideStringToInt(const XalanDOMChar *theString)
Converts a wide string into an integer value.
OutputIteratorType XalanCopy(InputIteratorType begin, InputIteratorType end, OutputIteratorType iterator)
lastIndexOf(const XalanDOMChar *theString, XalanDOMChar theChar)
Simulates the java String method lastIndexOf().
OutputIteratorType XalanTransform(InputIteratorType begin, InputIteratorType end, OutputIteratorType iterator, UnaryFunction function)
double DOMStringToDouble(const XalanDOMString &theString, MemoryManager &theMemoryManager)
Converts a XalanDOMString into a double value.
WideStringToUnsignedLong(const XalanDOMChar *theString)
Converts a wide string into an unsigned long value.
NumberToDOMString(double theValue, XalanDOMString &theResult)
Converts a double value into a XalanDOMString.
const char * c_str(const CharVectorType &theString)
Get the underlying representation of the target CharVectorType as a null-terminated string.
startsWith(const XalanDOMChar *theString, XalanDOMString::size_type theStringLength, const XalanDOMChar *theSubstring, XalanDOMString::size_type theSubstringLength)
Simulates the java String method startsWith().
compareIgnoreCaseASCII(const XalanDOMChar *theLHS, XalanDOMString::size_type theLHSLength, const XalanDOMChar *theRHS, XalanDOMString::size_type theRHSLength)
Compare the contents of two arrays in a case insensitive manner.
XalanDOMString & append(XalanDOMString &theString, const XalanDOMString &theStringToAppend)
Concatenate two strings.
bool isXMLDigit(XalanDOMChar theChar)
Determines whether character represents a digit.
WideStringToDouble(const XalanDOMChar *theString, MemoryManager &theMemoryManager)
Converts a wide string into a double value.
NumberToHexDOMString(XMLUInt64 theValue, XalanDOMString &theResult)
Converts an 64-bit unsigned int value into a XalanDOMString.
XalanDOMChar charAt(const XalanDOMString &theString, XalanDOMString::size_type theIndex)
Retrieves a character at a specified index in the target string.
long DOMStringToLong(const XalanDOMString &theString)
Converts a XalanDOMString into a long value.
endsWith(const XalanDOMChar *theString, XalanDOMString::size_type theStringLength, const XalanDOMChar *theSubstring, XalanDOMString::size_type theSubstringLength)
Simulates the java String method endsWith().
equalsIgnoreCaseASCII(const XalanDOMChar *theLHS, const XalanDOMChar *theRHS, XalanDOMString::size_type theLength)
Compare the contents of two arrays for equality, without regard for case.
equals(const XalanDOMChar *theLHS, const XalanDOMChar *theRHS, XalanDOMString::size_type theLength)
Compare the contents of two arrays for equality.
Greater than functor for DOMStrings.
Greater than or equal functor for DOMStrings.
Less than functor for DOMStrings which ignores case for the characters a-z and A-Z.
Less than or equal functor for DOMStrings.
This functor is designed to compare 0-terminated wide strings in a case-insensitive manner.
bool operator()(const XalanDOMChar *theLHS, const XalanDOMChar *theRHS) const
Compare the values of two objects.