22 #if !defined(XERCESC_INCLUDE_GUARD_TRANSSERVICE_HPP)
23 #define XERCESC_INCLUDE_GUARD_TRANSSERVICE_HPP
27 #include <xercesc/framework/XMLRecognizer.hpp>
28 #include <xercesc/util/RefHashTableOf.hpp>
29 #include <xercesc/util/RefVectorOf.hpp>
62 , SupportFilesNotFound
83 const XMLCh*
const encodingName
91 const char*
const encodingName
99 XMLRecognizer::Encodings encodingEnum
109 virtual int compareIString
111 const XMLCh*
const comp1
112 ,
const XMLCh*
const comp2
115 virtual int compareNIString
117 const XMLCh*
const comp1
118 ,
const XMLCh*
const comp2
122 virtual const XMLCh* getId()
const = 0;
131 virtual bool supportsSrcOfs()
const = 0;
133 virtual void upperCase(
XMLCh*
const toUpperCase) = 0;
134 virtual void lowerCase(
XMLCh*
const toLowerCase) = 0;
145 static void addEncoding(
const XMLCh*
const encoding, ENameMap*
const ownMapping);
159 friend class Uniconv390TransService;
163 const XMLCh*
const encodingName
173 virtual void initTransService();
270 ,
XMLCh*
const toFill
273 ,
unsigned char*
const charSizes
291 const XMLCh*
const srcData
296 ,
const UnRepOpts options
304 virtual bool canTranscodeTo
306 const unsigned int toCheck
325 const XMLCh* getEncodingName()
const;
348 const XMLCh*
const encodingName
376 XMLCh* fEncodingName;
415 virtual char* transcode(
const XMLCh*
const toTranscode,
418 virtual XMLCh* transcode(
const char*
const toTranscode,
425 virtual XMLSize_t calcRequiredSize(
const char*
const srcText
431 virtual bool transcode
433 const char*
const toTranscode
434 ,
XMLCh*
const toFill
439 virtual bool transcode
441 const XMLCh*
const toTranscode
603 const XMLCh *str()
const;
650 return fMemoryManager;
663 return fEncodingName;
683 return fBytesWritten;
696 XMLCh *tmp = fString;
703 return fCharsWritten;
XMLSize_t length() const
Returns the length of the transcoded string in characters.
Definition: TransService.hpp:701
This class makes it possible to override the C++ memory management by adding new/delete operators to ...
Definition: XMemory.hpp:40
XMLSize_t getBlockSize() const
Get the internal block size.
Definition: TransService.hpp:656
XMLByte extCh
Definition: TransService.hpp:68
UnRepOpts
This enum is used by the transcodeTo() method to indicate how to react to unrepresentable characters...
Definition: TransService.hpp:225
XMLCh * adopt()
Returns the transcoded, null terminated string - adopting the memory allocated to it from the Transco...
Definition: TransService.hpp:694
Utilities that must be implemented in a class-specific way.
Definition: XMLInitializer.hpp:37
const XMLCh * str() const
Returns the transcoded, null terminated string.
Definition: TransService.hpp:689
MemoryManager * getMemoryManager() const
Get the plugged-in memory manager.
Definition: TransService.hpp:648
Definition: TransService.hpp:568
Codes
Definition: TransService.hpp:57
Definition: TransService.hpp:468
XMLSize_t length() const
Returns the length of the transcoded string in bytes.
Definition: TransService.hpp:681
XMLTranscoder is for transcoding non-local code page encodings, i.e.
Definition: TransService.hpp:214
XMLCh intCh
Definition: TransService.hpp:67
const XMLByte * str() const
Returns the transcoded, null terminated string.
Definition: TransService.hpp:669
Configurable memory manager.
Definition: MemoryManager.hpp:39
const XMLCh * getEncodingName() const
Get the encoding name.
Definition: TransService.hpp:661
SIZE_T XMLSize_t
Definition: Xerces_autoconf_config.borland.hpp:86
#define XERCES_CPP_NAMESPACE_BEGIN
Definition: XercesDefs.hpp:112
wchar_t XMLCh
Definition: Xerces_autoconf_config.borland.hpp:92
Definition: TransService.hpp:51
unsigned char XMLByte
Definition: XercesDefs.hpp:65
XMLByte * adopt()
Returns the transcoded, null terminated string - adopting the memory allocated to it from the Transco...
Definition: TransService.hpp:674
#define XMLUTIL_EXPORT
Definition: XercesDefs.hpp:162
Definition: TransService.hpp:65
#define XERCES_CPP_NAMESPACE_END
Definition: XercesDefs.hpp:113
Definition: TransService.hpp:387
static RefVectorOf< ENameMap > * gMappingsRecognizer
Definition: TransService.hpp:187
static RefHashTableOf< ENameMap > * gMappings
Definition: TransService.hpp:186