18#if !defined(XALANUTF16WRITER_HEADER_GUARD_1357924680)
19#define XALANUTF16WRITER_HEADER_GUARD_1357924680
37 MemoryManager& theMemoryManager);
50 assert(m_newlineString != 0);
51 assert(
length(m_newlineString) == m_newlineStringLength);
55 m_newlineStringLength);
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);
119 if (theLength > kBufferSize)
123 m_writer.write(theChars, 0, theLength);
127 if (m_bufferRemaining < theLength)
134 *m_bufferPosition = theChars[i];
139 m_bufferRemaining -= theLength;
154 if (m_bufferRemaining == 0)
159 *m_bufferPosition = theChar;
179 const XalanDOMChar* theChars,
182 write(theChars, theLength);
188 write(theChars, XalanDOMString::length(theChars));
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;
218 size_type m_bufferRemaining;
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
const XalanDOMChar * c_str() const
virtual ~XalanUTF16Writer()
void writePIChars(const XalanDOMChar *data, size_type theLength)
Writes name chars, if not representable, throws.
size_type write(const value_type chars[], size_type start, size_type)
void write(const value_type *theChars)
void writeNameChar(const XalanDOMChar *data, size_type theLength)
Writes name chars, if not representable, throws.
void writeCommentChars(const XalanDOMChar *data, size_type theLength)
Writes name chars, if not representable, throws.
void write(const XalanDOMString &theChars)
void safeWriteContent(const XalanDOMChar *theChars, size_type theLength)
void write(const value_type *theChars, size_type theLength)
size_type writeCDATAChar(const XalanDOMChar chars[], size_type start, size_type, bool &)
void outputNewline()
Output a line break.
void write(value_type theChar)
XalanUTF16Writer(Writer &writer, MemoryManager &theMemoryManager)
void writeSafe(const XalanDOMChar *theChars, size_type theLength)
XalanDOMString::size_type length(const XalanDOMString &theString)
Get the length of a XalanDOMString.