summaryrefslogtreecommitdiffstats
path: root/intl/icu_capi/cpp/include/ICU4XDisplayNamesOptionsV1.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'intl/icu_capi/cpp/include/ICU4XDisplayNamesOptionsV1.hpp')
-rw-r--r--intl/icu_capi/cpp/include/ICU4XDisplayNamesOptionsV1.hpp43
1 files changed, 43 insertions, 0 deletions
diff --git a/intl/icu_capi/cpp/include/ICU4XDisplayNamesOptionsV1.hpp b/intl/icu_capi/cpp/include/ICU4XDisplayNamesOptionsV1.hpp
new file mode 100644
index 0000000000..52b66efa7e
--- /dev/null
+++ b/intl/icu_capi/cpp/include/ICU4XDisplayNamesOptionsV1.hpp
@@ -0,0 +1,43 @@
+#ifndef ICU4XDisplayNamesOptionsV1_HPP
+#define ICU4XDisplayNamesOptionsV1_HPP
+#include <stdint.h>
+#include <stddef.h>
+#include <stdbool.h>
+#include <algorithm>
+#include <memory>
+#include <variant>
+#include <optional>
+#include "diplomat_runtime.hpp"
+
+#include "ICU4XDisplayNamesOptionsV1.h"
+
+#include "ICU4XDisplayNamesStyle.hpp"
+#include "ICU4XDisplayNamesFallback.hpp"
+#include "ICU4XLanguageDisplay.hpp"
+
+
+/**
+ * See the [Rust documentation for `DisplayNamesOptions`](https://docs.rs/icu/latest/icu/displaynames/options/struct.DisplayNamesOptions.html) for more information.
+ */
+struct ICU4XDisplayNamesOptionsV1 {
+ public:
+
+ /**
+ * The optional formatting style to use for display name.
+ */
+ ICU4XDisplayNamesStyle style;
+
+ /**
+ * The fallback return when the system does not have the
+ * requested display name, defaults to "code".
+ */
+ ICU4XDisplayNamesFallback fallback;
+
+ /**
+ * The language display kind, defaults to "dialect".
+ */
+ ICU4XLanguageDisplay language_display;
+};
+
+
+#endif