18 #if !defined(XALANUTF16WRITER_HEADER_GUARD_1357924680) 19 #define XALANUTF16WRITER_HEADER_GUARD_1357924680 25 XALAN_CPP_NAMESPACE_BEGIN
37 MemoryManager& theMemoryManager);
61 const XalanDOMChar chars[],
78 const XalanDOMChar* data,
81 write(data, theLength);
89 const XalanDOMChar* data,
92 write(data, theLength);
100 const XalanDOMChar* data,
103 write(data, theLength);
108 const XalanDOMChar* theChars,
111 write(theChars, theLength);
116 const value_type* theChars,
119 if (theLength > kBufferSize)
127 if (m_bufferRemaining < theLength)
134 *m_bufferPosition = theChars[i];
139 m_bufferRemaining -= theLength;
154 if (m_bufferRemaining == 0)
159 *m_bufferPosition = theChar;
168 const value_type chars[],
179 const XalanDOMChar* theChars,
182 write(theChars, theLength);
197 m_bufferPosition - m_buffer);
200 m_bufferPosition = m_buffer;
201 m_bufferRemaining = kBufferSize;
214 value_type m_buffer[kBufferSize];
216 value_type* m_bufferPosition;
223 XALAN_CPP_NAMESPACE_END
227 #endif // XALANUTF16WRITER_HEADER_GUARD_1357924680 void writeSafe(const XalanDOMChar *theChars, size_type theLength)
virtual void write(const char *s, size_t theOffset=0, size_t theLength=npos)=0
Writes a string.
void safeWriteContent(const XalanDOMChar *theChars, size_type theLength)
void writeNameChar(const XalanDOMChar *data, size_type theLength)
Writes name chars, if not representable, throws.
void outputNewline()
Output a line break.
const XalanDOMChar * c_str() const
void write(const value_type *theChars, size_type theLength)
virtual ~XalanUTF16Writer()
void write(const XalanDOMString &theChars)
XalanUTF16Writer(Writer &writer, MemoryManager &theMemoryManager)
void write(const value_type *theChars)
void writePIChars(const XalanDOMChar *data, size_type theLength)
Writes name chars, if not representable, throws.
XalanDOMString::size_type length(const XalanDOMString &theString)
Get the length of a XalanDOMString.
size_type write(const value_type chars[], size_type start, size_type)
size_type writeCDATAChar(const XalanDOMChar chars[], size_type start, size_type, bool &)
void writeCommentChars(const XalanDOMChar *data, size_type theLength)
Writes name chars, if not representable, throws.
void write(value_type theChar)