diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
commit | 26a029d407be480d791972afb5975cf62c9360a6 (patch) | |
tree | f435a8308119effd964b339f76abb83a57c29483 /intl/icu_capi/c/include/ICU4XComposingNormalizer.h | |
parent | Initial commit. (diff) | |
download | firefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz firefox-26a029d407be480d791972afb5975cf62c9360a6.zip |
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'intl/icu_capi/c/include/ICU4XComposingNormalizer.h')
-rw-r--r-- | intl/icu_capi/c/include/ICU4XComposingNormalizer.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/intl/icu_capi/c/include/ICU4XComposingNormalizer.h b/intl/icu_capi/c/include/ICU4XComposingNormalizer.h new file mode 100644 index 0000000000..1798af0d8e --- /dev/null +++ b/intl/icu_capi/c/include/ICU4XComposingNormalizer.h @@ -0,0 +1,38 @@ +#ifndef ICU4XComposingNormalizer_H +#define ICU4XComposingNormalizer_H +#include <stdio.h> +#include <stdint.h> +#include <stddef.h> +#include <stdbool.h> +#include "diplomat_runtime.h" + +#ifdef __cplusplus +namespace capi { +#endif + +typedef struct ICU4XComposingNormalizer ICU4XComposingNormalizer; +#ifdef __cplusplus +} // namespace capi +#endif +#include "ICU4XDataProvider.h" +#include "diplomat_result_box_ICU4XComposingNormalizer_ICU4XError.h" +#include "diplomat_result_void_ICU4XError.h" +#ifdef __cplusplus +namespace capi { +extern "C" { +#endif + +diplomat_result_box_ICU4XComposingNormalizer_ICU4XError ICU4XComposingNormalizer_create_nfc(const ICU4XDataProvider* provider); + +diplomat_result_box_ICU4XComposingNormalizer_ICU4XError ICU4XComposingNormalizer_create_nfkc(const ICU4XDataProvider* provider); + +diplomat_result_void_ICU4XError ICU4XComposingNormalizer_normalize(const ICU4XComposingNormalizer* self, const char* s_data, size_t s_len, DiplomatWriteable* write); + +bool ICU4XComposingNormalizer_is_normalized(const ICU4XComposingNormalizer* self, const char* s_data, size_t s_len); +void ICU4XComposingNormalizer_destroy(ICU4XComposingNormalizer* self); + +#ifdef __cplusplus +} // extern "C" +} // namespace capi +#endif +#endif |