| 1 |
#ifndef ICU4XLocale_H |
| 2 |
#define ICU4XLocale_H |
| 3 |
#include <stdio.h> |
| 4 |
#include <stdint.h> |
| 5 |
#include <stddef.h> |
| 6 |
#include <stdbool.h> |
| 7 |
#include "diplomat_runtime.h" |
| 8 |
|
| 9 |
#ifdef __cplusplus |
| 10 |
namespace capi { |
| 11 |
#endif |
| 12 |
|
| 13 |
typedef struct ICU4XLocale ICU4XLocale; |
| 14 |
#ifdef __cplusplus |
| 15 |
} // namespace capi |
| 16 |
#endif |
| 17 |
#include "diplomat_result_box_ICU4XLocale_ICU4XError.h" |
| 18 |
#include "diplomat_result_void_ICU4XError.h" |
| 19 |
#include "ICU4XOrdering.h" |
| 20 |
#ifdef __cplusplus |
| 21 |
namespace capi { |
| 22 |
extern "C" { |
| 23 |
#endif |
| 24 |
|
| 25 |
diplomat_result_box_ICU4XLocale_ICU4XError ICU4XLocale_create_from_string(const char* name_data, size_t name_len); |
| 26 |
|
| 27 |
ICU4XLocale* ICU4XLocale_create_und(); |
| 28 |
|
| 29 |
ICU4XLocale* ICU4XLocale_clone(const ICU4XLocale* self); |
| 30 |
|
| 31 |
diplomat_result_void_ICU4XError ICU4XLocale_basename(const ICU4XLocale* self, DiplomatWriteable* write); |
| 32 |
|
| 33 |
diplomat_result_void_ICU4XError ICU4XLocale_get_unicode_extension(const ICU4XLocale* self, const char* bytes_data, size_t bytes_len, DiplomatWriteable* write); |
| 34 |
|
| 35 |
diplomat_result_void_ICU4XError ICU4XLocale_language(const ICU4XLocale* self, DiplomatWriteable* write); |
| 36 |
|
| 37 |
diplomat_result_void_ICU4XError ICU4XLocale_set_language(ICU4XLocale* self, const char* bytes_data, size_t bytes_len); |
| 38 |
|
| 39 |
diplomat_result_void_ICU4XError ICU4XLocale_region(const ICU4XLocale* self, DiplomatWriteable* write); |
| 40 |
|
| 41 |
diplomat_result_void_ICU4XError ICU4XLocale_set_region(ICU4XLocale* self, const char* bytes_data, size_t bytes_len); |
| 42 |
|
| 43 |
diplomat_result_void_ICU4XError ICU4XLocale_script(const ICU4XLocale* self, DiplomatWriteable* write); |
| 44 |
|
| 45 |
diplomat_result_void_ICU4XError ICU4XLocale_set_script(ICU4XLocale* self, const char* bytes_data, size_t bytes_len); |
| 46 |
|
| 47 |
diplomat_result_void_ICU4XError ICU4XLocale_canonicalize(const char* bytes_data, size_t bytes_len, DiplomatWriteable* write); |
| 48 |
|
| 49 |
diplomat_result_void_ICU4XError ICU4XLocale_to_string(const ICU4XLocale* self, DiplomatWriteable* write); |
| 50 |
|
| 51 |
bool ICU4XLocale_normalizing_eq(const ICU4XLocale* self, const char* other_data, size_t other_len); |
| 52 |
|
| 53 |
ICU4XOrdering ICU4XLocale_strict_cmp(const ICU4XLocale* self, const char* other_data, size_t other_len); |
| 54 |
|
| 55 |
ICU4XOrdering ICU4XLocale_total_cmp(const ICU4XLocale* self, const ICU4XLocale* other); |
| 56 |
|
| 57 |
ICU4XLocale* ICU4XLocale_create_en(); |
| 58 |
|
| 59 |
ICU4XLocale* ICU4XLocale_create_bn(); |
| 60 |
void ICU4XLocale_destroy(ICU4XLocale* self); |
| 61 |
|
| 62 |
#ifdef __cplusplus |
| 63 |
} // extern "C" |
| 64 |
} // namespace capi |
| 65 |
#endif |
| 66 |
#endif |