Ice 3.8
C++ API Reference
Loading...
Searching...
No Matches
Ice::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 Ice::BasicStringConverter< charT >:

Public Member Functions

virtual void fromUTF8 (const std::byte *sourceStart, const std::byte *sourceEnd, std::basic_string< charT > &target) const =0
 Unmarshals a UTF-8 sequence into a basic_string.
virtual std::byte * toUTF8 (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).

Detailed Description

template<typename charT>
class Ice::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 throwing IllegalConversionException or an exception thrown by UTF8Buffer.

Definition at line 37 of file StringConverter.h.


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