16 #if !defined(XALANUTF16WRITER_HEADER_GUARD_1357924680)
17 #define XALANUTF16WRITER_HEADER_GUARD_1357924680
23 XALAN_CPP_NAMESPACE_BEGIN
35 MemoryManager& theMemoryManager);
59 const XalanDOMChar chars[],
77 write(data, theLength);
86 write(data, theLength);
95 write(data, theLength);
100 const XalanDOMChar* theChars,
103 write(theChars, theLength);
111 if (theLength >
sizeof(m_buffer))
119 if (m_bufferRemaining < theLength)
126 *m_bufferPosition = theChars[i];
131 m_bufferRemaining -= theLength;
146 if (m_bufferRemaining == 0)
151 *m_bufferPosition = theChar;
171 const XalanDOMChar* theChars,
174 write(theChars, theLength);
187 reinterpret_cast<const char*>(m_buffer),
189 (m_bufferPosition - m_buffer) *
sizeof m_buffer[0]);
192 m_bufferPosition = m_buffer;
193 m_bufferRemaining = kBufferSize;
215 XALAN_CPP_NAMESPACE_END
219 #endif // XALANUTF16WRITER_HEADER_GUARD_1357924680
size_type length() const
Definition: XalanDOMString.hpp:209
void writeSafe(const XalanDOMChar *theChars, size_type theLength)
Definition: XalanUTF16Writer.hpp:170
virtual void write(const char *s, size_t theOffset=0, size_t theLength=npos)=0
Writes a string.
Definition: Writer.hpp:42
void safeWriteContent(const XalanDOMChar *theChars, size_type theLength)
Definition: XalanUTF16Writer.hpp:99
void writeNameChar(const XalanDOMChar *data, size_type theLength)
Writes name chars , if not presentable, throws.
Definition: XalanUTF16Writer.hpp:74
Definition: XalanUTF16Writer.hpp:26
void outputNewline()
Output a line break.
Definition: XalanUTF16Writer.hpp:46
void flushBuffer()
Definition: XalanUTF16Writer.hpp:184
XalanDOMChar value_type
Definition: XalanUTF16Writer.hpp:30
void write(const value_type *theChars, size_type theLength)
Definition: XalanUTF16Writer.hpp:107
virtual ~XalanUTF16Writer()
Definition: XalanUTF16Writer.hpp:38
const XalanDOMChar * c_str() const
Definition: XalanDOMString.hpp:314
void write(const XalanDOMString &theChars)
Definition: XalanUTF16Writer.hpp:137
XalanUTF16Writer(Writer &writer, MemoryManager &theMemoryManager)
void write(const value_type *theChars)
Definition: XalanUTF16Writer.hpp:178
void writePIChars(const XalanDOMChar *data, size_type theLength)
Writes name chars , if not presentable, throws.
Definition: XalanUTF16Writer.hpp:83
Definition: XalanDOMString.hpp:42
XalanDOMString::size_type length(const XalanDOMString &theString)
Get the length of a XalanDOMString.
Definition: DOMStringHelper.hpp:277
size_type write(const value_type chars[], size_type start, size_type)
Definition: XalanUTF16Writer.hpp:159
size_type writeCDATAChar(const XalanDOMChar chars[], size_type start, size_type, bool &)
Definition: XalanUTF16Writer.hpp:58
void writeCommentChars(const XalanDOMChar *data, size_type theLength)
Writes name chars , if not presentable, throws.
Definition: XalanUTF16Writer.hpp:92
void write(value_type theChar)
Definition: XalanUTF16Writer.hpp:143