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> 30 #include <xercesc/util/Janitor.hpp> 63 , SupportFilesNotFound
84 const XMLCh*
const encodingName
92 const char*
const encodingName
100 XMLRecognizer::Encodings encodingEnum
110 virtual int compareIString
112 const XMLCh*
const comp1
113 ,
const XMLCh*
const comp2
116 virtual int compareNIString
118 const XMLCh*
const comp1
119 ,
const XMLCh*
const comp2
123 virtual const XMLCh* getId()
const = 0;
132 virtual bool supportsSrcOfs()
const = 0;
134 virtual void upperCase(
XMLCh*
const toUpperCase) = 0;
135 virtual void lowerCase(
XMLCh*
const toLowerCase) = 0;
146 static void addEncoding(
const XMLCh*
const encoding, ENameMap*
const ownMapping);
160 friend class Uniconv390TransService;
164 const XMLCh*
const encodingName
174 virtual void initTransService();
271 ,
XMLCh*
const toFill
274 ,
unsigned char*
const charSizes
292 const XMLCh*
const srcData
305 virtual bool canTranscodeTo
307 const unsigned int toCheck
326 const XMLCh* getEncodingName()
const;
349 const XMLCh*
const encodingName
377 XMLCh* fEncodingName;
416 virtual char* transcode(
const XMLCh*
const toTranscode,
419 virtual XMLCh* transcode(
const char*
const toTranscode,
426 virtual XMLSize_t calcRequiredSize(
const char*
const srcText
432 virtual bool transcode
434 const char*
const toTranscode
435 ,
XMLCh*
const toFill
440 virtual bool transcode
442 const XMLCh*
const toTranscode
559 ArrayJanitor<XMLByte> fString;
604 const XMLCh *str()
const;
641 ArrayJanitor<XMLCh> fString;
651 return fMemoryManager;
664 return fEncodingName;
672 return fString.get();
678 return fString.release();
683 return fBytesWritten;
691 return fString.get();
697 return fString.release();
702 return fCharsWritten;
const XMLByte * str() const
Returns the transcoded, null terminated string.
Definition: TransService.hpp:670
This class makes it possible to override the C++ memory management by adding new/delete operators to ...
Definition: XMemory.hpp:40
XMLByte extCh
Definition: TransService.hpp:69
XMLSize_t length() const
Returns the length of the transcoded string in characters.
Definition: TransService.hpp:700
UnRepOpts
This enum is used by the transcodeTo() method to indicate how to react to unrepresentable characters...
Definition: TransService.hpp:226
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
Definition: TransService.hpp:569
Codes
Definition: TransService.hpp:58
Definition: TransService.hpp:469
XMLTranscoder is for transcoding non-local code page encodings, i.e.
Definition: TransService.hpp:215
XMLCh intCh
Definition: TransService.hpp:68
Configurable memory manager.
Definition: MemoryManager.hpp:39
uint16_t XMLCh
Definition: Xerces_autoconf_config.hpp:120
#define XERCES_CPP_NAMESPACE_BEGIN
Definition: XercesDefs.hpp:112
XMLSize_t length() const
Returns the length of the transcoded string in bytes.
Definition: TransService.hpp:681
Definition: TransService.hpp:52
unsigned char XMLByte
Definition: XercesDefs.hpp:65
const XMLCh * str() const
Returns the transcoded, null terminated string.
Definition: TransService.hpp:689
size_t XMLSize_t
Definition: Xerces_autoconf_config.hpp:112
XMLByte * adopt()
Returns the transcoded, null terminated string - adopting the memory allocated to it from the Transco...
Definition: TransService.hpp:675
#define XMLUTIL_EXPORT
Definition: XercesDefs.hpp:162
Definition: TransService.hpp:66
#define XERCES_CPP_NAMESPACE_END
Definition: XercesDefs.hpp:113
Definition: TransService.hpp:388
MemoryManager * getMemoryManager() const
Get the plugged-in memory manager.
Definition: TransService.hpp:649
XMLSize_t getBlockSize() const
Get the internal block size.
Definition: TransService.hpp:657
static RefVectorOf< ENameMap > * gMappingsRecognizer
Definition: TransService.hpp:188
static RefHashTableOf< ENameMap > * gMappings
Definition: TransService.hpp:187
const XMLCh * getEncodingName() const
Get the encoding name.
Definition: TransService.hpp:662