18#if !defined(XALANTRANSCODINGSERVICES_HEADER_GUARD_1357924680)
19#define XALANTRANSCODINGSERVICES_HEADER_GUARD_1357924680
41class XalanOutputTranscoder;
298 return m_badCharacter;
325 static const XalanXMLByte s_dummyByteOrderMark[];
326 static const XalanXMLByte s_UTF8ByteOrderMark[];
349 return m_memoryManager;
403 MemoryManager& m_memoryManager;
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
XalanTranscodingServices::size_type size_type
virtual eCode transcode(const XalanDOMChar *theSourceData, size_type theSourceCount, XalanXMLByte *theTarget, size_type theTargetSize, size_type &theSourceCharsTranscoded, size_type &theTargetBytesUsed)=0
Transcode data from UTF-16 to the transcoder's encoding.
virtual ~XalanOutputTranscoder()
virtual eCode transcode(const XalanXMLByte *theSourceData, size_type theSourceCount, XalanDOMChar *theTarget, size_type theTargetSize, size_type &theSourceCharsTranscoded, size_type &theTargetBytesUsed, unsigned char *theCharSizes)=0
Transcode data from the transcoder's encoding to UTF-16.
XalanTranscodingServices::eCode eCode
XalanTranscodingServices::XalanXMLByte XalanXMLByte
virtual bool canTranscodeTo(XalanUnicodeChar theChar) const =0
MemoryManager & getMemoryManager()
XalanOutputTranscoder(MemoryManager &theManager)
MakeTranscoderException(eCode theCode, const XalanDOMChar *theEncoding, XalanDOMString &theBuffer, const Locator *theLocator=0)
const XalanDOMString & getEncoding() const
virtual ~MakeTranscoderException()
MakeTranscoderException(const MakeTranscoderException &)
virtual const XalanDOMChar * getType() const
Retrieve type of exception.
virtual const XalanDOMChar * getType() const
Retrieve type of exception.
const XalanDOMString & getEncoding() const
UnrepresentableCharacterException(const UnrepresentableCharacterException &theSource)
virtual ~UnrepresentableCharacterException()
UnrepresentableCharacterException(XalanUnicodeChar theCharacter, const XalanDOMString &theEncoding, XalanDOMString &theBuffer, const Locator *theLocator=0)
XalanUnicodeChar getCharacter() const
static bool encodingIsUTF8(const XalanDOMChar *theEncodingName)
Determine if the encoding name supplied is equivalent to UTF-8.
static bool encodingIsUTF8(const XalanDOMString &theEncodingName)
Determine if the encoding name supplied is equivalent to UTF-8.
static void initialize(MemoryManager &theManager)
Perform static initialization.
static XalanDOMChar getMaximumCharacterValue()
Get the maximum character value for the local code page.
static XalanOutputTranscoder * makeNewTranscoder(MemoryManager &theManager, const XalanDOMChar *theEncodingName, eCode &theResult, size_type theBlockSize)
static bool encodingIsUTF32(const XalanDOMChar *theEncodingName)
Determine if the encoding name supplied is equivalent to UTF-32.
static size_type length(const XalanXMLByte *theBytes)
unsigned char XalanXMLByte
static void terminate()
Perform static shut down.
static bool encodingIsUTF16(const XalanDOMChar *theEncodingName)
Determine if the encoding name supplied is equivalent to UTF-16.
static bool encodingIsUTF32(const XalanDOMString &theEncodingName)
Determine if the encoding name supplied is equivalent to UTF-32.
static void destroyTranscoder(XalanOutputTranscoder *theTranscoder)
Destroy a transcoder instance.
static XalanOutputTranscoder * makeNewTranscoder(MemoryManager &theManager, const XalanDOMString &theEncodingName, eCode &theResult, size_type theBlockSize)
Create a transcoder instance for the specified encoding.
static bool encodingIsUTF16(const XalanDOMString &theEncodingName)
Determine if the encoding name supplied is equivalent to UTF-16.
static bool getBytesEqualChars(const XalanDOMString &theEncoding)
Determine if the output stage can safely skip transcoding by truncating.
static const XalanXMLByte * getStreamProlog(const XalanDOMString &theEncodingName)
Get an array that contains any leading bytes that should be written to an XML stream for the specifie...
static XalanDOMChar getMaximumCharacterValue(const XalanDOMString &theEncoding)
Get the maximum character value for the encoding.
bool operator==(const XalanVector< Type > &theLHS, const XalanVector< Type > &theRHS)