diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
commit | 26a029d407be480d791972afb5975cf62c9360a6 (patch) | |
tree | f435a8308119effd964b339f76abb83a57c29483 /intl/icu_capi/cpp/include/ICU4XFixedDecimalSign.hpp | |
parent | Initial commit. (diff) | |
download | firefox-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/ICU4XFixedDecimalSign.hpp')
-rw-r--r-- | intl/icu_capi/cpp/include/ICU4XFixedDecimalSign.hpp | 39 |
1 files changed, 39 insertions, 0 deletions
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 <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 |