Debian Codegraph @

intl/icu_capi/bindings/cpp/ICU4XFixedDecimal.h

raw
1 #ifndef ICU4XFixedDecimal_H
2 #define ICU4XFixedDecimal_H
3 #include <stdio.h>
4 #include <stdint.h>
5 #include <stddef.h>
6 #include <stdbool.h>
7 #include "diplomat_runtime.h"
8
9 #ifdef __cplusplus
10 namespace capi {
11 #endif
12
13 typedef struct ICU4XFixedDecimal ICU4XFixedDecimal;
14 #ifdef __cplusplus
15 } // namespace capi
16 #endif
17 #include "diplomat_result_box_ICU4XFixedDecimal_ICU4XError.h"
18 #include "ICU4XFixedDecimalSign.h"
19 #include "ICU4XFixedDecimalSignDisplay.h"
20 #include "ICU4XRoundingIncrement.h"
21 #include "diplomat_result_void_void.h"
22 #ifdef __cplusplus
23 namespace capi {
24 extern "C" {
25 #endif
26
27 ICU4XFixedDecimal* ICU4XFixedDecimal_create_from_i32(int32_t v);
28
29 ICU4XFixedDecimal* ICU4XFixedDecimal_create_from_u32(uint32_t v);
30
31 ICU4XFixedDecimal* ICU4XFixedDecimal_create_from_i64(int64_t v);
32
33 ICU4XFixedDecimal* ICU4XFixedDecimal_create_from_u64(uint64_t v);
34
35 diplomat_result_box_ICU4XFixedDecimal_ICU4XError ICU4XFixedDecimal_create_from_f64_with_integer_precision(double f);
36
37 diplomat_result_box_ICU4XFixedDecimal_ICU4XError ICU4XFixedDecimal_create_from_f64_with_lower_magnitude(double f, int16_t magnitude);
38
39 diplomat_result_box_ICU4XFixedDecimal_ICU4XError ICU4XFixedDecimal_create_from_f64_with_significant_digits(double f, uint8_t digits);
40
41 diplomat_result_box_ICU4XFixedDecimal_ICU4XError ICU4XFixedDecimal_create_from_f64_with_floating_precision(double f);
42
43 diplomat_result_box_ICU4XFixedDecimal_ICU4XError ICU4XFixedDecimal_create_from_string(const char* v_data, size_t v_len);
44
45 uint8_t ICU4XFixedDecimal_digit_at(const ICU4XFixedDecimal* self, int16_t magnitude);
46
47 int16_t ICU4XFixedDecimal_magnitude_start(const ICU4XFixedDecimal* self);
48
49 int16_t ICU4XFixedDecimal_magnitude_end(const ICU4XFixedDecimal* self);
50
51 int16_t ICU4XFixedDecimal_nonzero_magnitude_start(const ICU4XFixedDecimal* self);
52
53 int16_t ICU4XFixedDecimal_nonzero_magnitude_end(const ICU4XFixedDecimal* self);
54
55 bool ICU4XFixedDecimal_is_zero(const ICU4XFixedDecimal* self);
56
57 void ICU4XFixedDecimal_multiply_pow10(ICU4XFixedDecimal* self, int16_t power);
58
59 ICU4XFixedDecimalSign ICU4XFixedDecimal_sign(const ICU4XFixedDecimal* self);
60
61 void ICU4XFixedDecimal_set_sign(ICU4XFixedDecimal* self, ICU4XFixedDecimalSign sign);
62
63 void ICU4XFixedDecimal_apply_sign_display(ICU4XFixedDecimal* self, ICU4XFixedDecimalSignDisplay sign_display);
64
65 void ICU4XFixedDecimal_trim_start(ICU4XFixedDecimal* self);
66
67 void ICU4XFixedDecimal_trim_end(ICU4XFixedDecimal* self);
68
69 void ICU4XFixedDecimal_pad_start(ICU4XFixedDecimal* self, int16_t position);
70
71 void ICU4XFixedDecimal_pad_end(ICU4XFixedDecimal* self, int16_t position);
72
73 void ICU4XFixedDecimal_set_max_position(ICU4XFixedDecimal* self, int16_t position);
74
75 void ICU4XFixedDecimal_trunc(ICU4XFixedDecimal* self, int16_t position);
76
77 void ICU4XFixedDecimal_trunc_to_increment(ICU4XFixedDecimal* self, int16_t position, ICU4XRoundingIncrement increment);
78
79 void ICU4XFixedDecimal_half_trunc(ICU4XFixedDecimal* self, int16_t position);
80
81 void ICU4XFixedDecimal_half_trunc_to_increment(ICU4XFixedDecimal* self, int16_t position, ICU4XRoundingIncrement increment);
82
83 void ICU4XFixedDecimal_expand(ICU4XFixedDecimal* self, int16_t position);
84
85 void ICU4XFixedDecimal_expand_to_increment(ICU4XFixedDecimal* self, int16_t position, ICU4XRoundingIncrement increment);
86
87 void ICU4XFixedDecimal_half_expand(ICU4XFixedDecimal* self, int16_t position);
88
89 void ICU4XFixedDecimal_half_expand_to_increment(ICU4XFixedDecimal* self, int16_t position, ICU4XRoundingIncrement increment);
90
91 void ICU4XFixedDecimal_ceil(ICU4XFixedDecimal* self, int16_t position);
92
93 void ICU4XFixedDecimal_ceil_to_increment(ICU4XFixedDecimal* self, int16_t position, ICU4XRoundingIncrement increment);
94
95 void ICU4XFixedDecimal_half_ceil(ICU4XFixedDecimal* self, int16_t position);
96
97 void ICU4XFixedDecimal_half_ceil_to_increment(ICU4XFixedDecimal* self, int16_t position, ICU4XRoundingIncrement increment);
98
99 void ICU4XFixedDecimal_floor(ICU4XFixedDecimal* self, int16_t position);
100
101 void ICU4XFixedDecimal_floor_to_increment(ICU4XFixedDecimal* self, int16_t position, ICU4XRoundingIncrement increment);
102
103 void ICU4XFixedDecimal_half_floor(ICU4XFixedDecimal* self, int16_t position);
104
105 void ICU4XFixedDecimal_half_floor_to_increment(ICU4XFixedDecimal* self, int16_t position, ICU4XRoundingIncrement increment);
106
107 void ICU4XFixedDecimal_half_even(ICU4XFixedDecimal* self, int16_t position);
108
109 void ICU4XFixedDecimal_half_even_to_increment(ICU4XFixedDecimal* self, int16_t position, ICU4XRoundingIncrement increment);
110
111 diplomat_result_void_void ICU4XFixedDecimal_concatenate_end(ICU4XFixedDecimal* self, ICU4XFixedDecimal* other);
112
113 void ICU4XFixedDecimal_to_string(const ICU4XFixedDecimal* self, DiplomatWriteable* to);
114 void ICU4XFixedDecimal_destroy(ICU4XFixedDecimal* self);
115
116 #ifdef __cplusplus
117 } // extern "C"
118 } // namespace capi
119 #endif
120 #endif