## Xalan-C++ API Documentation

### The Xalan C++ XSLT Processor Version 1.9

Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

# XalanDOMString Class Reference

Collaboration diagram for XalanDOMString:

[legend]
List of all members.

## Public Types

- typedef XalanVector< XalanDOMChar > XalanDOMCharVectorType
- typedef XalanVector< char > CharVectorType
- typedef XalanVector< wchar_t > WideCharVectorType
- typedef XalanDOMChar value_type
- typedef XalanDOMChar & reference
- typedef const XalanDOMChar & const_reference
- typedef unsigned int 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
- enum { npos = -1 }

## Public Member Functions

- XalanDOMString (MemoryManagerType &theManager XALAN_DEFAULT_CONSTRACTOR_MEMORY_MGR)
- XalanDOMString (const char *theString, MemoryManagerType &theManager XALAN_DEFAULT_MEMMGR, size_type theCount=size_type(npos))
- XalanDOMString (const XalanDOMString &theSource, MemoryManagerType &theManager XALAN_DEFAULT_CONSTRACTOR_MEMORY_MGR, size_type theStartPosition=0, size_type theCount=size_type(npos))
- XalanDOMString (const XalanDOMChar *theString, MemoryManagerType &theManager XALAN_DEFAULT_MEMMGR, size_type theCount=size_type(npos))
- XalanDOMString (size_type theCount, XalanDOMChar theChar, MemoryManagerType &theManager XALAN_DEFAULT_MEMMGR)
- XalanDOMString * clone (MemoryManagerType &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 ()
- void 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 (MemoryManagerType &theManager, const char *theString)
- void reset (MemoryManagerType &theManager, const XalanDOMChar *theString)
- void transcode (CharVectorType &theResult) const
    Transcode the string to the local code page.
- MemoryManagerType & getMemoryManager ()
- size_type hash () const

## Static Public Member Functions

- bool equals (const XalanDOMChar *theLHS, size_type theLHSLength, const XalanDOMChar *theRHS, size_type theRHSLength)
- bool equals (const XalanDOMChar *theLHS, const XalanDOMChar *theRHS)
- bool equals (const XalanDOMString &theLHS, const XalanDOMString &theRHS)
- bool equals (const XalanDOMString &theLHS, const XalanDOMChar *theRHS)
- bool equals (const XalanDOMChar *theLHS, const XalanDOMString &theRHS)
- size_type length (const XalanDOMChar *theString)
- size_type length (const char *theString)
- size_type hash (const XalanDOMChar *theString, size_type theLength)

## Protected Member Functions

- void invariants () const
- iterator getBackInsertIterator ()
- const_iterator getBackInsertIterator () const
- iterator getIteratorForPosition (size_type thePosition)
- const_iterator getIteratorForPosition (size_type thePosition) const

## Member Typedef Documentation

typedef XalanVector<char> XalanDOMString::CharVectorType

typedef XalanDOMCharVectorType::const_iterator XalanDOMString::const_iterator

typedef const XalanDOMChar& XalanDOMString::const_reference

typedef XalanDOMCharVectorType::const_reverse_iterator XalanDOMString::const_reverse_iterator

typedef XalanDOMCharVectorType::iterator XalanDOMString::iterator

typedef XalanDOMChar& XalanDOMString::reference

typedef XalanDOMCharVectorType::reverse_iterator XalanDOMString::reverse_iterator

typedef unsigned int XalanDOMString::size_type

typedef XalanDOMChar XalanDOMString::value_type

typedef XalanVector<wchar_t> XalanDOMString::WideCharVectorType

typedef XalanVector<XalanDOMChar> XalanDOMString::XalanDOMCharVectorType

## Member Enumeration Documentation

anonymous enum

  | Enumeration values:
  npos |

## Constructor & Destructor Documentation

XalanDOMString::XalanDOMString | ( | MemoryManagerType &theManager | XALAN_DEFAULT_CONSTRACTOR_MEMORY_MGR | ) |

XalanDOMString::XalanDOMString | ( | const char * | theString,
|  | MemoryManagerType &theManager | XALAN_DEFAULT_MEMMGR,
|  | size_type | theCount = size_type(npos)
| ) | `[explicit]`

XalanDOMString::XalanDOMString | ( | const XalanDOMString & | theSource,
|  | MemoryManagerType &theManager | XALAN_DEFAULT_CONSTRACTOR_MEMORY_MGR,
|  | size_type | theStartPosition = 0,
|  | size_type | theCount = size_type(npos)
| ) |

XalanDOMString::XalanDOMString | ( | const XalanDOMChar * | theString,
|  | MemoryManagerType &theManager | XALAN_DEFAULT_MEMMGR,
|  | size_type | theCount = size_type(npos)
| ) | `[explicit]`

XalanDOMString::XalanDOMString | ( | size_type | theCount,
|  | XalanDOMChar | theChar,
|  | MemoryManagerType &theManager | XALAN_DEFAULT_MEMMGR
| ) |

XalanDOMString::~XalanDOMString | ( |  | ) |

## Member Function Documentation

XalanDOMString& XalanDOMString::append | ( | size_type | theCount,
|  | XalanDOMChar | theChar
| ) |

XalanDOMString& XalanDOMString::append | ( | const char * | theString | ) |

XalanDOMString& XalanDOMString::append | ( | const char * | theString,
|  | size_type | theCount
| ) |

XalanDOMString& XalanDOMString::append | ( | const XalanDOMChar * | theString | ) |

XalanDOMString& XalanDOMString::append | ( | const XalanDOMChar * | theString,
|  | size_type | theCount
| ) |

XalanDOMString& XalanDOMString::append | ( | const XalanDOMString & | theSource,
|  | size_type | thePosition,
|  | size_type | theCount
| ) |

XalanDOMString& XalanDOMString::append | ( | const XalanDOMString & | theSource | ) |

XalanDOMString& XalanDOMString::assign | ( | iterator | theFirstPosition,
|  | iterator | theLastPosition
| ) |

XalanDOMString& XalanDOMString::assign | ( | size_type | theCount,
|  | XalanDOMChar | theChar
| ) |

XalanDOMString& XalanDOMString::assign | ( | const XalanDOMString & | theSource | ) |

XalanDOMString& XalanDOMString::assign | ( | const XalanDOMString & | theSource,
|  | size_type | thePosition,
|  | size_type | theCount
| ) |

XalanDOMString& XalanDOMString::assign | ( | const char * | theSource,
|  | size_type | theCount
| ) |

XalanDOMString& XalanDOMString::assign | ( | const char * | theSource | ) |

XalanDOMString& XalanDOMString::assign | ( | const XalanDOMChar * | theSource,
|  | size_type | theCount
| ) |

XalanDOMString& XalanDOMString::assign | ( | const XalanDOMChar * | theSource | ) |

reference XalanDOMString::at | ( | size_type | theIndex | ) |

const_reference XalanDOMString::at | ( | size_type | theIndex | ) | const

const_iterator XalanDOMString::begin | ( |  | ) | const

iterator XalanDOMString::begin | ( |  | ) |

const XalanDOMChar* XalanDOMString::c_str | ( |  | ) | const

size_type XalanDOMString::capacity | ( |  | ) | const

void XalanDOMString::clear | ( |  | ) |

XalanDOMString* XalanDOMString::clone | ( | MemoryManagerType & | theManager | ) |

int XalanDOMString::compare | ( | size_type | thePosition1,
|  | size_type | theCount1,
|  | const XalanDOMChar * | theString,
|  | size_type | theCount2 = size_type(npos)
| ) | const

int XalanDOMString::compare | ( | const XalanDOMChar * | theString | ) | const

int XalanDOMString::compare | ( | size_type | thePosition1,
|  | size_type | theCount1,
|  | const XalanDOMString & | theString,
|  | size_type | thePosition2,
|  | size_type | theCount2
| ) | const

int XalanDOMString::compare | ( | size_type | thePosition1,
|  | size_type | theCount1,
|  | const XalanDOMString & | theString
| ) | const

int XalanDOMString::compare | ( | const XalanDOMString & | theString | ) | const

const XalanDOMChar* XalanDOMString::data | ( |  | ) | const

bool XalanDOMString::empty | ( |  | ) | const

const_iterator XalanDOMString::end | ( |  | ) | const

iterator XalanDOMString::end | ( |  | ) |

bool XalanDOMString::equals | ( | const XalanDOMChar * | theLHS,
|  | const XalanDOMString & | theRHS
| ) | `[static]`

bool XalanDOMString::equals | ( | const XalanDOMString & | theLHS,
|  | const XalanDOMChar * | theRHS
| ) | `[static]`

bool XalanDOMString::equals | ( | const XalanDOMString & | theLHS,
|  | const XalanDOMString & | theRHS
| ) | `[static]`

bool XalanDOMString::equals | ( | const XalanDOMChar * | theLHS,
|  | const XalanDOMChar * | theRHS
| ) | `[static]`

bool XalanDOMString::equals | ( | const XalanDOMChar * | theLHS,
|  | size_type | theLHSLength,
|  | const XalanDOMChar * | theRHS,
|  | size_type | theRHSLength
| ) | `[static]`

void XalanDOMString::erase | ( | size_type | theStartPosition = 0,
|  | size_type | theCount = size_type(npos)
| ) |

const_iterator XalanDOMString::getBackInsertIterator | ( |  | ) | const`[protected]`

iterator XalanDOMString::getBackInsertIterator | ( |  | ) | `[protected]`

const_iterator XalanDOMString::getIteratorForPosition | ( | size_type | thePosition | ) | const`[protected]`

iterator XalanDOMString::getIteratorForPosition | ( | size_type | thePosition | ) | `[protected]`

MemoryManagerType& XalanDOMString::getMemoryManager | ( |  | ) |

size_type XalanDOMString::hash | ( | const XalanDOMChar * | theString,
|  | size_type | theLength
| ) | `[static]`

size_type XalanDOMString::hash | ( |  | ) | const

void XalanDOMString::insert | ( | iterator | theInsertPosition,
|  | iterator | theFirstPosition,
|  | iterator | theLastPosition
| ) |

void XalanDOMString::insert | ( | iterator | thePosition,
|  | size_type | theCount,
|  | XalanDOMChar | theChar
| ) |

iterator XalanDOMString::insert | ( | iterator | thePosition,
|  | XalanDOMChar | theChar
| ) |

XalanDOMString& XalanDOMString::insert | ( | size_type | thePosition,
|  | size_type | theCount,
|  | XalanDOMChar | theChar
| ) |

XalanDOMString& XalanDOMString::insert | ( | size_type | thePosition,
|  | const XalanDOMChar * | theString
| ) |

XalanDOMString& XalanDOMString::insert | ( | size_type | thePosition,
|  | const XalanDOMChar * | theString,
|  | size_type | theCount
| ) |

XalanDOMString& XalanDOMString::insert | ( | size_type | thePosition1,
|  | const XalanDOMString & | theString,
|  | size_type | thePosition2,
|  | size_type | theCount
| ) |

XalanDOMString& XalanDOMString::insert | ( | size_type | thePosition,
|  | const XalanDOMString & | theString
| ) |

void XalanDOMString::invariants | ( |  | ) | const`[protected]`

size_type XalanDOMString::length | ( | const char * | theString | ) | `[static]`

size_type XalanDOMString::length | ( | const XalanDOMChar * | theString | ) | `[static]`

size_type XalanDOMString::length | ( |  | ) | const

size_type XalanDOMString::max_size | ( |  | ) | const

XalanDOMString& XalanDOMString::operator+= | ( | XalanDOMChar | theChar | ) |

XalanDOMString& XalanDOMString::operator+= | ( | const XalanDOMChar * | theString | ) |

XalanDOMString& XalanDOMString::operator+= | ( | const XalanDOMString & | theSource | ) |

XalanDOMString& XalanDOMString::operator= | ( | XalanDOMChar | theRHS | ) |

XalanDOMString& XalanDOMString::operator= | ( | const char * | theRHS | ) |

XalanDOMString& XalanDOMString::operator= | ( | const XalanDOMChar * | theRHS | ) |

XalanDOMString& XalanDOMString::operator= | ( | const XalanDOMString & | theRHS | ) |

reference XalanDOMString::operator[] | ( | size_type | theIndex | ) |

const_reference XalanDOMString::operator[] | ( | size_type | theIndex | ) | const

void XalanDOMString::push_back | ( | XalanDOMChar | theChar | ) |

const_reverse_iterator XalanDOMString::rbegin | ( |  | ) | const

reverse_iterator XalanDOMString::rbegin | ( |  | ) |

const_reverse_iterator XalanDOMString::rend | ( |  | ) | const

reverse_iterator XalanDOMString::rend | ( |  | ) |

void XalanDOMString::reserve | ( | size_type | theCount = 0 | ) |

void XalanDOMString::reset | ( | MemoryManagerType & | theManager,
|  | const XalanDOMChar * | theString
| ) |

void XalanDOMString::reset | ( | MemoryManagerType & | theManager,
|  | const char * | theString
| ) |

void XalanDOMString::resize | ( | size_type | theCount | ) |

void XalanDOMString::resize | ( | size_type | theCount,
|  | XalanDOMChar | theChar
| ) |

size_type XalanDOMString::size | ( |  | ) | const

XalanDOMString& XalanDOMString::substr | ( | XalanDOMString & | theSubstring,
|  | size_type | thePosition = 0,
|  | size_type | theCount = size_type(npos)
| ) | const

void XalanDOMString::swap | ( | XalanDOMString & | theOther | ) |

void 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. Parameters:
  theResult | A CharVectorType instance for the transcoded string. The string is null-terminated.

The documentation for this class was generated from the following file:

- XalanDOMString.hpp

Interpreting class diagrams

Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.

Xalan-C++ XSLT Processor Version 1.9 Copyright © 1999-2004 The Apache Software Foundation. All Rights Reserved.