2024-10-04 21:12:58 -06:00
|
|
|
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
|
2024-10-04 21:17:45 -06:00
|
|
|
// overwritten later, so use [[dup]] to extend its lifetime.
|
2024-10-04 21:12:58 -06:00
|
|
|
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
|
2024-10-04 21:17:45 -06:00
|
|
|
// overwritten later, so use [[dup]] to extend its lifetime.
|
2024-10-04 21:12:58 -06:00
|
|
|
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
|
2024-10-04 21:17:45 -06:00
|
|
|
// overwritten later, so use [[dup]] to extend its lifetime.
|
2024-10-04 21:12:58 -06:00
|
|
|
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
|
2024-10-04 21:17:45 -06:00
|
|
|
// overwritten later, so use [[dup]] to extend its lifetime.
|
2024-10-04 21:12:58 -06:00
|
|
|
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
|
2024-10-04 21:17:45 -06:00
|
|
|
// overwritten later, so use [[dup]] to extend its lifetime.
|
2024-10-04 21:12:58 -06:00
|
|
|
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
|
2024-10-04 21:17:45 -06:00
|
|
|
// overwritten later, so use [[dup]] to extend its lifetime.
|
2024-10-04 21:12:58 -06:00
|
|
|
export fn get_messages() locale = c;
|