| 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
- data IConvCloseMethodInfo
- iConvClose :: (HasCallStack, MonadIO m) => IConv -> m Int32
Exported types
Constructors
| IConv (ManagedPtr IConv) |
Instances
| WrappedPtr IConv Source # | |
| ((~) * info (ResolveIConvMethod t IConv), MethodInfo * info IConv p) => IsLabel t (IConv -> p) Source # | |
| ((~) * info (ResolveIConvMethod t IConv), MethodInfo * info IConv p) => IsLabelProxy t (IConv -> p) Source # | |
| HasAttributeList * IConv Source # | |
| ((~) * signature (m Int32), MonadIO m) => MethodInfo * IConvCloseMethodInfo IConv signature Source # | |
| type AttributeList IConv Source # | |
Methods
close
data IConvCloseMethodInfo Source #
Instances
| ((~) * signature (m Int32), MonadIO m) => MethodInfo * IConvCloseMethodInfo IConv signature Source # | |
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.