summaryrefslogtreecommitdiffstats
path: root/intl/icu_capi/cpp/include/ICU4XFixedDecimalSign.hpp
blob: b56cdfc4b6925fa303ee0a153871527c3f36445b (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
#ifndef ICU4XFixedDecimalSign_HPP
#define ICU4XFixedDecimalSign_HPP
#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>
#include <algorithm>
#include <memory>
#include <variant>
#include <optional>
#include "diplomat_runtime.hpp"

#include "ICU4XFixedDecimalSign.h"



/**
 * The sign of a FixedDecimal, as shown in formatting.
 * 
 * See the [Rust documentation for `Sign`](https://docs.rs/fixed_decimal/latest/fixed_decimal/enum.Sign.html) for more information.
 */
enum struct ICU4XFixedDecimalSign {

  /**
   * No sign (implicitly positive, e.g., 1729).
   */
  None = 0,

  /**
   * A negative sign, e.g., -1729.
   */
  Negative = 1,

  /**
   * An explicit positive sign, e.g., +1729.
   */
  Positive = 2,
};

#endif