summaryrefslogtreecommitdiffstats
path: root/intl/icu_capi/cpp/include/ICU4XDisplayNamesOptionsV1.hpp
blob: 52b66efa7e9180ebdad021455d65bc4e24da11f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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