ui-utilcpp 1.10.3
Public Member Functions
UI::Util::Conversion Class Reference

Holder class for conversion results. More...

#include <Recoder.hpp>

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

Public Member Functions

 Conversion (char const *const cStr, size_t const cSize)
 Constructor.
 
char constget () const
 Get conversion data.
 
size_t getSize () const
 Get size (in bytes) of conversion data.
 
std::string getString () const
 Get std::string copy of conversion data.
 

Detailed Description

Holder class for conversion results.

Member Function Documentation

◆ get()

char const * UI::Util::Conversion::get ( ) const

Get conversion data.

Note
: This is a C-String, i.e., it always ends in a zero-byte. However, there also may be zero-bytes in between (depending on the encoding); you would also need getSize() in that case.

◆ getString()

std::string UI::Util::Conversion::getString ( ) const

Get std::string copy of conversion data.

Note
This copies the whole conversion (not only the C-String) into the std::string (
See also
get()).

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