Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
No description available in the introspection data.
Synopsis
- newtype Encoding = Encoding (ManagedPtr Encoding)
- encodingCopy :: (HasCallStack, MonadIO m) => Encoding -> m Encoding
- encodingFree :: (HasCallStack, MonadIO m) => Encoding -> m ()
- encodingGetAll :: (HasCallStack, MonadIO m) => m [Encoding]
- encodingGetCharset :: (HasCallStack, MonadIO m) => Encoding -> m Text
- encodingGetCurrent :: (HasCallStack, MonadIO m) => m Encoding
- encodingGetDefaultCandidates :: (HasCallStack, MonadIO m) => m [Encoding]
- encodingGetFromCharset :: (HasCallStack, MonadIO m) => Text -> m (Maybe Encoding)
- encodingGetName :: (HasCallStack, MonadIO m) => Encoding -> m Text
- encodingGetUtf8 :: (HasCallStack, MonadIO m) => m Encoding
- encodingToString :: (HasCallStack, MonadIO m) => Encoding -> m Text
Exported types
Memory-managed wrapper type.
Instances
Eq Encoding Source # | |
GBoxed Encoding Source # | |
Defined in GI.GtkSource.Structs.Encoding | |
ManagedPtrNewtype Encoding Source # | |
Defined in GI.GtkSource.Structs.Encoding toManagedPtr :: Encoding -> ManagedPtr Encoding | |
TypedObject Encoding Source # | |
Defined in GI.GtkSource.Structs.Encoding | |
HasParentTypes Encoding Source # | |
Defined in GI.GtkSource.Structs.Encoding | |
IsGValue (Maybe Encoding) Source # | Convert |
Defined in GI.GtkSource.Structs.Encoding gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe Encoding -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe Encoding) | |
type ParentTypes Encoding Source # | |
Defined in GI.GtkSource.Structs.Encoding |
Methods
Click to display all available methods, including inherited ones
copy
:: (HasCallStack, MonadIO m) | |
=> Encoding |
|
-> m Encoding | Returns: a copy of |
Used by language bindings.
Since: 3.14
free
:: (HasCallStack, MonadIO m) | |
=> Encoding |
|
-> m () |
Used by language bindings.
Since: 3.14
getAll
:: (HasCallStack, MonadIO m) | |
=> m [Encoding] | Returns: a list of
all |
Gets all encodings.
Since: 3.14
getCharset
:: (HasCallStack, MonadIO m) | |
=> Encoding |
|
-> m Text | Returns: the character set of the |
Gets the character set of the Encoding
, such as "UTF-8" or
"ISO-8859-1".
Since: 3.14
getCurrent
:: (HasCallStack, MonadIO m) | |
=> m Encoding | Returns: the current locale encoding. |
Gets the Encoding
for the current locale. See also getCharset
.
Since: 3.14
getDefaultCandidates
encodingGetDefaultCandidates Source #
:: (HasCallStack, MonadIO m) | |
=> m [Encoding] | Returns: the list of
default candidate encodings. Free with |
Gets the list of default candidate encodings to try when loading a file. See
fileLoaderSetCandidateEncodings
.
This function returns a different list depending on the current locale (i.e. language, country and default encoding). The UTF-8 encoding and the current locale encoding are guaranteed to be present in the returned list.
Since: 3.18
getFromCharset
encodingGetFromCharset Source #
:: (HasCallStack, MonadIO m) | |
=> Text |
|
-> m (Maybe Encoding) | Returns: the corresponding |
Gets a Encoding
from a character set such as "UTF-8" or
"ISO-8859-1".
Since: 3.14
getName
Gets the name of the Encoding
such as "Unicode" or "Western".
Since: 3.14
getUtf8
:: (HasCallStack, MonadIO m) | |
=> m Encoding | Returns: the UTF-8 encoding. |
No description available in the introspection data.
Since: 3.14