ui-utilcpp  1.8.5
Public Member Functions
UI::Util::IConvConverter Class Reference

Character set converter, using libc's "iconv" directly. More...

#include <Recoder.hpp>

Inheritance diagram for UI::Util::IConvConverter:
Inheritance graph
Collaboration diagram for UI::Util::IConvConverter:
Collaboration graph

Public Member Functions

 IConvConverter (std::string const &inEnc, std::string const &outEnc, const bool &sloppy=false)
 Constructor; this does not support sloppy encoding.
 
Conversion const * make (char const *const buf, size_t const bufSize) const
 Convert from byte buffer. More...
 
- Public Member Functions inherited from UI::Util::Converter
 Converter (std::string const &inEnc, std::string const &outEnc, bool const &sloppy=false)
 Converter base constructor.
 
Conversion const * make (char const *const cStr) const
 Convert from C-String.
 
Conversion const * make (std::string const &str) const
 Convert from std::string.
 
std::string getID () const
 Get id (informational).
 

Additional Inherited Members

- Public Types inherited from UI::Util::Converter
enum  ErrorCode { EncUnknown_, ConversionErr_, UnknownErr_ }
 Error codes for exceptions.
 
typedef CodeException< ErrorCodeException
 Exceptions for this class.
 
- Protected Attributes inherited from UI::Util::Converter
std::string const inEnc_
 
std::string const outEnc_
 
bool const sloppy_
 

Detailed Description

Character set converter, using libc's "iconv" directly.

Member Function Documentation

Conversion const * UI::Util::IConvConverter::make ( char const *const  buf,
size_t const  bufSize 
) const
virtual

Convert from byte buffer.

Bug:
memory leak (malloc)?

Implements UI::Util::Converter.

References UI::Util::Converter::getID(), and UI_THROW_CODE.


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