SDL3pp
A slim C++ wrapper for SDL3
|
Handle to an owned iConv. More...
Public Member Functions | |
constexpr | IConv (SDL_iconv_data_t *resource={}) |
Constructs from the underlying resource. | |
constexpr | IConv (const IConv &other)=delete |
constexpr | IConv (IConv &&other)=default |
Move constructor. | |
~IConv () | |
Frees up resource when object goes out of scope. | |
IConv & | operator= (IConv other) |
Assignment operator. | |
constexpr | IConvRef (const IConvRef &other) |
Copy constructor. | |
constexpr | IConvRef (IConvRef &&other) |
Move constructor. | |
![]() | |
constexpr | IConvRef (const IConvRef &other) |
Copy constructor. | |
constexpr | IConvRef (IConvRef &&other) |
Move constructor. | |
constexpr | ~IConvRef ()=default |
Default constructor. | |
IConvRef & | operator= (IConvRef other) |
Assignment operator. | |
int | reset (SDL_iconv_data_t *newResource={}) |
This function frees a context used for character set conversion. | |
IConvBase (StringParam tocode, StringParam fromcode) | |
This function allocates a context for the specified character set conversion. | |
![]() | |
IConvBase (StringParam tocode, StringParam fromcode) | |
This function allocates a context for the specified character set conversion. | |
size_t | iconv (const char **inbuf, size_t *inbytesleft, char **outbuf, size_t *outbytesleft) |
This function converts text between encodings, reading from and writing to a buffer. | |
constexpr | Resource (T resource={}) |
Constructs the underlying resource. | |
constexpr | Resource (std::nullptr_t) |
Equivalent to default ctor. | |
constexpr | Resource (std::nullopt_t) |
Equivalent to default ctor. | |
Resource (const Resource &other)=delete | |
Resource (Resource &&other)=delete | |
![]() | |
constexpr | Resource (SDL_iconv_data_t * resource={}) |
Constructs the underlying resource. | |
constexpr | Resource (std::nullptr_t) |
Equivalent to default ctor. | |
constexpr | Resource (std::nullopt_t) |
Equivalent to default ctor. | |
Resource (const Resource &other)=delete | |
Resource (Resource &&other)=delete | |
Resource & | operator= (const Resource &other)=delete |
Resource & | operator= (Resource &&other)=delete |
constexpr | operator bool () const |
True if contains a valid resource. | |
constexpr bool | operator== (const Resource &other) const=default |
Comparison. | |
constexpr bool | operator== (std::nullopt_t) const |
Comparison. | |
constexpr bool | operator== (std::nullptr_t) const |
Comparison. | |
constexpr SDL_iconv_data_t * | get () const |
Return contained resource;. | |
constexpr SDL_iconv_data_t * | release (SDL_iconv_data_t * newResource={}) |
Return contained resource and empties or replace value. | |
constexpr const SDL_iconv_data_t * | operator-> () const |
Access to fields. | |
constexpr SDL_iconv_data_t * | operator-> () |
Access to fields. | |