 |
Xalan-C++ API Reference
1.12.0
|
Go to the documentation of this file.
18 #if !defined(XALANTRANSCODINGSERVICES_HEADER_GUARD_1357924680)
19 #define XALANTRANSCODINGSERVICES_HEADER_GUARD_1357924680
41 class XalanOutputTranscoder;
67 assert(theBytes != 0);
71 while(theBytes[i] != 0)
99 MemoryManager& theManager,
106 MemoryManager& theManager,
107 const XalanDOMChar* theEncodingName,
217 static const XalanDOMChar s_utf8String[];
219 static const XalanDOMChar s_utf16String[];
221 static const XalanDOMChar s_utf16LEString[];
223 static const XalanDOMChar s_utf16BEString[];
225 static const XalanDOMChar s_utf32String[];
227 static const XalanDOMChar s_asciiString[];
229 static const XalanDOMChar s_usASCIIString[];
231 static const XalanDOMChar s_windows1250String[];
233 static const XalanDOMChar s_iso88591String[];
235 static const XalanDOMChar s_shiftJISString[];
244 const XalanDOMChar* theEncoding,
246 const Locator* theLocator = 0);
265 virtual const XalanDOMChar*
273 static const XalanDOMChar s_type[];
285 XalanUnicodeChar theCharacter,
288 const Locator* theLocator = 0);
298 return m_badCharacter;
307 virtual const XalanDOMChar*
315 static const XalanDOMChar s_type[];
318 const XalanUnicodeChar m_badCharacter;
325 static const XalanXMLByte s_dummyByteOrderMark[];
326 static const XalanXMLByte s_UTF8ByteOrderMark[];
327 static const XalanDOMChar s_UTF16ByteOrderMark[];
349 return m_memoryManager;
367 const XalanDOMChar* theSourceData,
392 XalanDOMChar* theTarget,
396 unsigned char* theCharSizes) = 0;
403 MemoryManager& m_memoryManager;
421 #endif // XALANTRANSCODINGSERVICES_HEADER_GUARD_1357924680
virtual ~MakeTranscoderException()
UnrepresentableCharacterException(XalanUnicodeChar theCharacter, const XalanDOMString &theEncoding, XalanDOMString &theBuffer, const Locator *theLocator=0)
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.
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
static XalanOutputTranscoder * makeNewTranscoder(MemoryManager &theManager, const XalanDOMChar *theEncodingName, eCode &theResult, size_type theBlockSize)
virtual ~XalanOutputTranscoder()
virtual ~UnrepresentableCharacterException()
static XalanDOMChar getMaximumCharacterValue()
Get the maximum character value for the local code page.
static XalanDOMChar getMaximumCharacterValue(const XalanDOMString &theEncoding)
Get the maximum character value for the encoding.
UnrepresentableCharacterException(const UnrepresentableCharacterException &theSource)
static bool encodingIsUTF32(const XalanDOMString &theEncodingName)
Determine if the encoding name supplied is equivalent to UTF-32.
virtual bool canTranscodeTo(XalanUnicodeChar theChar) const =0
bool operator==(const XalanVector< Type > &theLHS, const XalanVector< Type > &theRHS)
static bool encodingIsUTF16(const XalanDOMChar *theEncodingName)
Determine if the encoding name supplied is equivalent to UTF-16.
XalanTranscodingServices::size_type size_type
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...
MakeTranscoderException(eCode theCode, const XalanDOMChar *theEncoding, XalanDOMString &theBuffer, const Locator *theLocator=0)
static bool encodingIsUTF8(const XalanDOMChar *theEncodingName)
Determine if the encoding name supplied is equivalent to UTF-8.
virtual const XalanDOMChar * getType() const
Retrieve type of exception.
static bool encodingIsUTF32(const XalanDOMChar *theEncodingName)
Determine if the encoding name supplied is equivalent to UTF-32.
MakeTranscoderException(const MakeTranscoderException &)
static size_type length(const XalanXMLByte *theBytes)
XalanUnicodeChar getCharacter() const
const XalanDOMString & getEncoding() const
static bool encodingIsUTF8(const XalanDOMString &theEncodingName)
Determine if the encoding name supplied is equivalent to UTF-8.
unsigned char XalanXMLByte
XalanTranscodingServices::eCode eCode
const XalanDOMString & getEncoding() const
static bool getBytesEqualChars(const XalanDOMString &theEncoding)
Determine if the output stage can safely skip transcoding by truncating.
static void destroyTranscoder(XalanOutputTranscoder *theTranscoder)
Destroy a transcoder instance.
XalanOutputTranscoder(MemoryManager &theManager)
MemoryManager & getMemoryManager()
static void terminate()
Perform static shut down.
virtual const XalanDOMChar * getType() const
Retrieve type of exception.
static XalanOutputTranscoder * makeNewTranscoder(MemoryManager &theManager, const XalanDOMString &theEncodingName, eCode &theResult, size_type theBlockSize)
Create a transcoder instance for the specified encoding.
static void initialize(MemoryManager &theManager)
Perform static initialization.
XalanTranscodingServices::XalanXMLByte XalanXMLByte
static bool encodingIsUTF16(const XalanDOMString &theEncodingName)
Determine if the encoding name supplied is equivalent to UTF-16.
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.