Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (inaki@blueleaf.cc) |
Safe Haskell | None |
Language | Haskell2010 |
No description available in the introspection data.
Synopsis
- newtype Encoding = Encoding (ManagedPtr Encoding)
- noEncoding :: Maybe 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.
Methods
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 'GI.GtkSource.Structs.Encoding.Encoding'\'s. Free with |
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
:: (HasCallStack, MonadIO m) | |
=> Encoding |
|
-> m Text | Returns: the name of the |
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