Top | ![]() |
![]() |
![]() |
![]() |
#define | SRT_LOCALE_ERROR |
GQuark | srt_locale_error_quark () |
const char * | srt_locale_get_requested_name () |
const char * | srt_locale_get_resulting_name () |
const char * | srt_locale_get_charset () |
gboolean | srt_locale_is_utf8 () |
gchar * | charset | Read / Write / Construct Only |
gboolean | is-utf8 | Read / Write / Construct Only |
gchar * | requested-name | Read / Write / Construct Only |
gchar * | resulting-name | Read / Write / Construct Only |
SrtLocale is an opaque object representing a locale.
This is a reference-counted object: use g_object_ref()
and
g_object_unref()
to manage its lifecycle.
const char *
srt_locale_get_requested_name (SrtLocale *self
);
Return the name of the locale that was checked.
const char *
srt_locale_get_resulting_name (SrtLocale *self
);
Return the name of the locale that was actually set when
“requested-name” was requested. For example, if
“requested-name” is POSIX
, the locale that is actually
set will typically be named C
.
const char *
srt_locale_get_charset (SrtLocale *self
);
Return the character set used by the locale, hopefully UTF-8
.
Errors in this domain indicate that problems were encountered when setting or inspecting a locale.
A bitfield with flags representing potential problems with locales, or
SRT_LOCALE_ISSUES_NONE
(which is numerically zero) if no problems
were detected.
In general, more bits set means more problems, with the only exception
for SRT_LOCALE_ISSUES_UNKNOWN
.
There are no problems |
||
An internal error of some kind has occurred, or an unknown issue flag was encountered while reading a report. |
||
|
||
|
||
|
||
|
||
The |
||
The |
“charset”
property“charset” gchar *
The name of a character set, typically UTF-8.
Flags: Read / Write / Construct Only
Default value: NULL
“is-utf8”
property“is-utf8” gboolean
TRUE if the character set is UTF-8.
Flags: Read / Write / Construct Only
Default value: FALSE
“requested-name”
property“requested-name” gchar *
The locale name that was checked.
Flags: Read / Write / Construct Only
Default value: NULL
“resulting-name”
property“resulting-name” gchar *
The locale name that was the result of calling setlocale().
Flags: Read / Write / Construct Only
Default value: NULL