Ice 3.7 C++98 API Reference
Loading...
Searching...
No Matches
IceUtil::BasicStringConverter< charT > Class Template Referenceabstract

A StringConverter converts narrow or wide-strings to and from UTF-8 byte sequences. More...

#include <Ice/Ice.h>

Inheritance diagram for IceUtil::BasicStringConverter< charT >:
Collaboration diagram for IceUtil::BasicStringConverter< charT >:

Public Member Functions

virtual void fromUTF8 (const Byte *sourceStart, const Byte *sourceEnd, std::basic_string< charT > &target) const =0
 Unmarshals a UTF-8 sequence into a basic_string.
virtual BytetoUTF8 (const charT *sourceStart, const charT *sourceEnd, UTF8Buffer &buf) const =0
 Returns a pointer to byte after the last written byte (which may be past the last byte returned by getMoreBytes).
virtual ~BasicStringConverter ()
Public Member Functions inherited from IceUtil::Shared
void __clearFlag (unsigned char flag)
virtual void __decRef ()
virtual int __getRef () const
bool __hasFlag (unsigned char flag)
virtual void __incRef ()
void __setFlag (unsigned char flag)
virtual void __setNoDelete (bool)
Sharedoperator= (const Shared &)
 Shared ()
 Shared (const Shared &)
virtual ~Shared ()

Additional Inherited Members

Static Public Attributes inherited from IceUtil::Shared
static const unsigned char NoDelete
Protected Attributes inherited from IceUtil::Shared
unsigned char _flags
IceUtilInternal::Atomic _ref

Detailed Description

template<typename charT>
class IceUtil::BasicStringConverter< charT >

A StringConverter converts narrow or wide-strings to and from UTF-8 byte sequences.

It's used by the communicator during marshaling (toUTF8) and unmarshaling (fromUTF8). It report errors by raising IllegalConversionException or an exception raised by UTF8Buffer.

Constructor & Destructor Documentation

◆ ~BasicStringConverter()

template<typename charT>
virtual IceUtil::BasicStringConverter< charT >::~BasicStringConverter ( )
inlinevirtual

Member Function Documentation

◆ fromUTF8()

template<typename charT>
virtual void IceUtil::BasicStringConverter< charT >::fromUTF8 ( const Byte * sourceStart,
const Byte * sourceEnd,
std::basic_string< charT > & target ) const
pure virtual

Unmarshals a UTF-8 sequence into a basic_string.

◆ toUTF8()

template<typename charT>
virtual Byte * IceUtil::BasicStringConverter< charT >::toUTF8 ( const charT * sourceStart,
const charT * sourceEnd,
UTF8Buffer & buf ) const
pure virtual

Returns a pointer to byte after the last written byte (which may be past the last byte returned by getMoreBytes).


The documentation for this class was generated from the following file: