summaryrefslogtreecommitdiffstats
path: root/intl/icu_capi/cpp/include/ICU4XTitlecaseOptionsV1.hpp
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
commit26a029d407be480d791972afb5975cf62c9360a6 (patch)
treef435a8308119effd964b339f76abb83a57c29483 /intl/icu_capi/cpp/include/ICU4XTitlecaseOptionsV1.hpp
parentInitial commit. (diff)
downloadfirefox-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/cpp/include/ICU4XTitlecaseOptionsV1.hpp')
-rw-r--r--intl/icu_capi/cpp/include/ICU4XTitlecaseOptionsV1.hpp38
1 files changed, 38 insertions, 0 deletions
diff --git a/intl/icu_capi/cpp/include/ICU4XTitlecaseOptionsV1.hpp b/intl/icu_capi/cpp/include/ICU4XTitlecaseOptionsV1.hpp
new file mode 100644
index 0000000000..dd8816816b
--- /dev/null
+++ b/intl/icu_capi/cpp/include/ICU4XTitlecaseOptionsV1.hpp
@@ -0,0 +1,38 @@
+#ifndef ICU4XTitlecaseOptionsV1_HPP
+#define ICU4XTitlecaseOptionsV1_HPP
+#include <stdint.h>
+#include <stddef.h>
+#include <stdbool.h>
+#include <algorithm>
+#include <memory>
+#include <variant>
+#include <optional>
+#include "diplomat_runtime.hpp"
+
+#include "ICU4XTitlecaseOptionsV1.h"
+
+#include "ICU4XLeadingAdjustment.hpp"
+#include "ICU4XTrailingCase.hpp"
+struct ICU4XTitlecaseOptionsV1;
+
+
+/**
+ * See the [Rust documentation for `TitlecaseOptions`](https://docs.rs/icu/latest/icu/casemap/titlecase/struct.TitlecaseOptions.html) for more information.
+ */
+struct ICU4XTitlecaseOptionsV1 {
+ public:
+ ICU4XLeadingAdjustment leading_adjustment;
+ ICU4XTrailingCase trailing_case;
+
+ /**
+ * See the [Rust documentation for `default`](https://docs.rs/icu/latest/icu/casemap/titlecase/struct.TitlecaseOptions.html#method.default) for more information.
+ */
+ static ICU4XTitlecaseOptionsV1 default_options();
+};
+
+
+inline ICU4XTitlecaseOptionsV1 ICU4XTitlecaseOptionsV1::default_options() {
+ capi::ICU4XTitlecaseOptionsV1 diplomat_raw_struct_out_value = capi::ICU4XTitlecaseOptionsV1_default_options();
+ return ICU4XTitlecaseOptionsV1{ .leading_adjustment = std::move(static_cast<ICU4XLeadingAdjustment>(diplomat_raw_struct_out_value.leading_adjustment)), .trailing_case = std::move(static_cast<ICU4XTrailingCase>(diplomat_raw_struct_out_value.trailing_case)) };
+}
+#endif