| Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.GLib.Structs.IConv
Contents
Description
The GIConv struct wraps an iconv() conversion descriptor. It contains
private data and should only be accessed using the following functions.
- newtype IConv = IConv (ManagedPtr IConv)
- noIConv :: Maybe IConv
- iConvClose :: (HasCallStack, MonadIO m) => IConv -> m Int32
Exported types
Methods
close
Arguments
| :: (HasCallStack, MonadIO m) | |
| => IConv |
|
| -> m Int32 | Returns: -1 on error, 0 on success |
Same as the standard UNIX routine iconv_close(), but
may be implemented via libiconv on UNIX flavors that lack
a native implementation. Should be called to clean up
the conversion descriptor from g_iconv_open() when
you are done converting things.
GLib provides convert and localeToUtf8 which are likely
more convenient than the raw iconv wrappers.