SDL3pp
A slim C++ wrapper for SDL3
Loading...
Searching...
No Matches
Public Member Functions | List of all members

Handle to an owned iConv. More...

Inheritance diagram for SDL::IConv:
Inheritance graph
[legend]

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.
 
IConvoperator= (IConv other)
 Assignment operator.
 
constexpr IConvRef (const IConvRef &other)
 Copy constructor.
 
constexpr IConvRef (IConvRef &&other)
 Move constructor.
 
- Public Member Functions inherited from SDL::IConvRef
constexpr IConvRef (const IConvRef &other)
 Copy constructor.
 
constexpr IConvRef (IConvRef &&other)
 Move constructor.
 
constexpr ~IConvRef ()=default
 Default constructor.
 
IConvRefoperator= (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.
 
- Public Member Functions inherited from SDL::IConvBase
 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
 
- Public Member Functions inherited from SDL::Resource< SDL_iconv_data_t * >
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
 
Resourceoperator= (const Resource &other)=delete
 
Resourceoperator= (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.
 

Detailed Description

Category:
Resource
See also
IConvBase
IConvRef

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