Remove prefixes and postfixes from declaration names
This commit is contained in:
parent
409aab92ff
commit
c77c886290
@ -8,38 +8,38 @@ def locale_conf_path = "/etc/locale.conf";
|
|||||||
|
|
||||||
// Returns the locale to use for character classification and case conversion.
|
// Returns the locale to use for character classification and case conversion.
|
||||||
// The memory is statically allocated and must not be free'd. It may be
|
// The memory is statically allocated and must not be free'd. It may be
|
||||||
// overwritten later, so use [[locale_dup]] to extend its lifetime.
|
// overwritten later, so use [[dup]] to extend its lifetime.
|
||||||
export fn get_ctype() locale = get_locale("LC_CTYPE");
|
export fn get_ctype() locale = get_locale("LC_CTYPE");
|
||||||
|
|
||||||
// Returns the locale to use for collation order.
|
// Returns the locale to use for collation order.
|
||||||
// The memory is statically allocated and must not be free'd. It may be
|
// The memory is statically allocated and must not be free'd. It may be
|
||||||
// overwritten later, so use [[locale_dup]] to extend its lifetime.
|
// overwritten later, so use [[dup]] to extend its lifetime.
|
||||||
export fn get_collate() locale = get_locale("LC_COLLATE");
|
export fn get_collate() locale = get_locale("LC_COLLATE");
|
||||||
|
|
||||||
// Returns the locale to use for monetary formatting.
|
// Returns the locale to use for monetary formatting.
|
||||||
// The memory is statically allocated and must not be free'd. It may be
|
// The memory is statically allocated and must not be free'd. It may be
|
||||||
// overwritten later, so use [[locale_dup]] to extend its lifetime.
|
// overwritten later, so use [[dup]] to extend its lifetime.
|
||||||
export fn get_monetary() locale = get_locale("LC_MONETARY");
|
export fn get_monetary() locale = get_locale("LC_MONETARY");
|
||||||
|
|
||||||
// Returns the locale to use for numeric, non-monetary formatting.
|
// Returns the locale to use for numeric, non-monetary formatting.
|
||||||
// The memory is statically allocated and must not be free'd. It may be
|
// The memory is statically allocated and must not be free'd. It may be
|
||||||
// overwritten later, so use [[locale_dup]] to extend its lifetime.
|
// overwritten later, so use [[dup]] to extend its lifetime.
|
||||||
export fn get_numeric() locale = get_locale("LC_NUMERIC");
|
export fn get_numeric() locale = get_locale("LC_NUMERIC");
|
||||||
|
|
||||||
// Returns the locale to use for date and time formats.
|
// Returns the locale to use for date and time formats.
|
||||||
// The memory is statically allocated and must not be free'd. It may be
|
// The memory is statically allocated and must not be free'd. It may be
|
||||||
// overwritten later, so use [[locale_dup]] to extend its lifetime.
|
// overwritten later, so use [[dup]] to extend its lifetime.
|
||||||
export fn get_time() locale = get_locale("LC_TIME");
|
export fn get_time() locale = get_locale("LC_TIME");
|
||||||
|
|
||||||
// Returns the locale to use for formats of informative and diagnostic messages
|
// Returns the locale to use for formats of informative and diagnostic messages
|
||||||
// and interactive responses.
|
// and interactive responses.
|
||||||
// The memory is statically allocated and must not be free'd. It may be
|
// The memory is statically allocated and must not be free'd. It may be
|
||||||
// overwritten later, so use [[locale_dup]] to extend its lifetime.
|
// overwritten later, so use [[dup]] to extend its lifetime.
|
||||||
export fn get_messages() locale = get_locale("LC_MESSAGES");
|
export fn get_messages() locale = get_locale("LC_MESSAGES");
|
||||||
|
|
||||||
// Returns the locale to use for linguistic translations.
|
// Returns the locale to use for linguistic translations.
|
||||||
// The memory is statically allocated and must not be free'd. It may be
|
// The memory is statically allocated and must not be free'd. It may be
|
||||||
// overwritten later, so use [[locale_dup]] to extend its lifetime.
|
// overwritten later, so use [[dup]] to extend its lifetime.
|
||||||
export fn get_lang() locale = get_locale("LC_LANG");
|
export fn get_lang() locale = get_locale("LC_LANG");
|
||||||
|
|
||||||
// TODO
|
// TODO
|
||||||