From 26a029d407be480d791972afb5975cf62c9360a6 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 02:47:55 +0200 Subject: Adding upstream version 124.0.1. Signed-off-by: Daniel Baumann --- .../icu_capi/cpp/include/ICU4XFixedDecimalSign.hpp | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 intl/icu_capi/cpp/include/ICU4XFixedDecimalSign.hpp (limited to 'intl/icu_capi/cpp/include/ICU4XFixedDecimalSign.hpp') diff --git a/intl/icu_capi/cpp/include/ICU4XFixedDecimalSign.hpp b/intl/icu_capi/cpp/include/ICU4XFixedDecimalSign.hpp new file mode 100644 index 0000000000..b56cdfc4b6 --- /dev/null +++ b/intl/icu_capi/cpp/include/ICU4XFixedDecimalSign.hpp @@ -0,0 +1,39 @@ +#ifndef ICU4XFixedDecimalSign_HPP +#define ICU4XFixedDecimalSign_HPP +#include +#include +#include +#include +#include +#include +#include +#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 -- cgit v1.2.3