41 lines
1.7 KiB
Hare
41 lines
1.7 KiB
Hare
use errors;
|
|
|
|
// 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
|
|
// overwritten later, so use [[dup]] to extend its lifetime.
|
|
export fn get_ctype() locale = c;
|
|
|
|
// Returns the locale to use for collation order.
|
|
// The memory is statically allocated and must not be free'd. It may be
|
|
// overwritten later, so use [[dup]] to extend its lifetime.
|
|
export fn get_collate() locale = c;
|
|
|
|
// Returns the locale to use for monetary formatting.
|
|
// The memory is statically allocated and must not be free'd. It may be
|
|
// overwritten later, so use [[dup]] to extend its lifetime.
|
|
export fn get_monetary() locale = c;
|
|
|
|
// Returns the locale to use for numeric, non-monetary formatting.
|
|
// The memory is statically allocated and must not be free'd. It may be
|
|
// overwritten later, so use [[dup]] to extend its lifetime.
|
|
export fn get_numeric() locale = c;
|
|
|
|
// Returns the locale to use for date and time formats.
|
|
// The memory is statically allocated and must not be free'd. It may be
|
|
// overwritten later, so use [[dup]] to extend its lifetime.
|
|
export fn get_time() locale = c;
|
|
|
|
// Returns the locale to use for formats of informative and diagnostic messages
|
|
// and interactive responses.
|
|
// The memory is statically allocated and must not be free'd. It may be
|
|
// overwritten later, so use [[dup]] to extend its lifetime.
|
|
export fn get_messages() locale = c;
|
|
|
|
// Returns the locale to use for linguistic translations.
|
|
// The memory is statically allocated and must not be free'd. It may be
|
|
// overwritten later, so use [[dup]] to extend its lifetime.
|
|
export fn get_lang() locale = c;
|
|
|
|
// TODO
|
|
export fn get_language() []locale;
|