xtd 0.2.0
Loading...
Searching...
No Matches
number_format_info.hpp
Go to the documentation of this file.
1
4#pragma once
5
6#include "../core_export.hpp"
8#include "../object.hpp"
9#include "../string.hpp"
10#include <locale>
11
13namespace xtd {
15 namespace globalization {
17 class culture_info;
19
35 class core_export_ number_format_info : public xtd::object {
36 public:
39 number_format_info();
40 number_format_info(number_format_info&& info) = default;
41 number_format_info(const number_format_info& info);
43
46 int32 currency_decimal_digits() const noexcept;
47 number_format_info& currency_decimal_digits(int32 value) noexcept;
48
49 const xtd::string& currency_decimal_separator() const noexcept;
50 number_format_info& currency_decimal_separator(const xtd::string& value) noexcept;
51
52 const xtd::string& currency_group_separator() const noexcept;
53 number_format_info& currency_group_separator(const xtd::string& value) noexcept;
54
55 const xtd::array<int32>& currency_group_sizes() const noexcept;
56 number_format_info& currency_group_sizes(const xtd::array<int32>& value) noexcept;
57
58 int32 currency_negative_pattern() const noexcept;
59 number_format_info& currency_negative_pattern(int32 value) noexcept;
60
61 int32 currency_positive_pattern() const noexcept;
62 number_format_info& currency_positive_pattern(int32 value) noexcept;
63
64 const xtd::string& currency_symbol() const noexcept;
65 number_format_info& currency_symbol(const xtd::string& value) noexcept;
66
67 int32 digit_substitution() const noexcept;
68 number_format_info& digit_substitution(int32 value) noexcept;
69
70 const xtd::string& nan_symbol() const noexcept;
71 number_format_info& nan_symbol(const xtd::string& value) noexcept;
72
73 const xtd::string& negative_infinity_symbol() const noexcept;
74 number_format_info& negative_infinity_symbol(const xtd::string& value) noexcept;
75
76 const xtd::string& negative_sign() const noexcept;
77 number_format_info& negative_sign(const xtd::string& value) noexcept;
78
79 int32 number_decimal_digits() const noexcept;
80 number_format_info& number_decimal_digits(int32 value) noexcept;
81
82 const xtd::string& number_decimal_separator() const noexcept;
83 number_format_info& number_decimal_separator(const xtd::string& value) noexcept;
84
85 const xtd::string& number_group_separator() const noexcept;
86 number_format_info& number_group_separator(const xtd::string& value) noexcept;
87
88 const xtd::array<int32>& number_group_sizes() const noexcept;
89 number_format_info& number_group_sizes(const xtd::array<int32>& value) noexcept;
90
91 int32 number_negative_pattern() const noexcept;
92 number_format_info& number_negative_pattern(int32 value) noexcept;
93
94 int32 percent_decimal_digits() const noexcept;
95 number_format_info& percent_decimal_digits(int32 value) noexcept;
96
97 const xtd::string& percent_decimal_separator() const noexcept;
98 number_format_info& percent_decimal_separator(const xtd::string& value) noexcept;
99
100 const xtd::string& percent_group_separator() const noexcept;
101 number_format_info& percent_group_separator(const xtd::string& value) noexcept;
102
103 const xtd::array<int32>& percent_group_sizes() const noexcept;
104 number_format_info& percent_group_sizes(const xtd::array<int32>& value) noexcept;
105
106 int32 percent_negative_pattern() const noexcept;
107 number_format_info& percent_negative_pattern(int32 value) noexcept;
108
109 int32 percent_positive_pattern() const noexcept;
110 number_format_info& percent_positive_pattern(int32 value) noexcept;
111
112 const xtd::string& percent_symbol() const noexcept;
113 number_format_info& percent_symbol(const xtd::string& value) noexcept;
114
115 const xtd::string& per_mille_symbol() const noexcept;
116 number_format_info& per_mille_symbol(const xtd::string& value) noexcept;
117
118 const xtd::string& positive_infinity_symbol() const noexcept;
119 number_format_info& positive_infinity_symbol(const xtd::string& value) noexcept;
120
121 const xtd::string& positive_sign() const noexcept;
122 number_format_info& positive_sign(const xtd::string& value) noexcept;
124
127 static const number_format_info& current_info() noexcept;
128 static const number_format_info& invariant_info() noexcept;
130
133 number_format_info& operator=(number_format_info&& info) = default;
134 number_format_info& operator=(const number_format_info& info);
136
137 private:
138 friend class culture_info;
139 number_format_info(int32 currency_decimal_digits, xtd::string&& currency_decimal_separator, xtd::string&& currency_group_separator, xtd::array<int32>&& currency_group_sizes, int32 currency_negative_pattern, int32 currency_positive_pattern, xtd::string&& currency_symbol, int32 digit_substitution, xtd::string&& nan_symbol, xtd::string&& negative_infinity_symbol, xtd::string&& negative_sign, int32 number_decimal_digits, xtd::string&& number_decimal_separator, xtd::string&& number_group_separator, xtd::array<int32>&& number_group_sizes, int32 number_negative_pattern, int32 percent_decimal_digits, xtd::string&& percent_decimal_separator, xtd::string&& percent_group_separator, xtd::array<int32>&& percent_group_sizes, int32 percent_negative_pattern, int32 percent_positive_pattern, xtd::string&& percent_symbol, xtd::string&& per_mille_symbol, xtd::string&& positive_infinity_symbol, xtd::string&& positive_sign);
141
142 struct data;
143 ptr<data> data_;
144 };
145 }
146}
Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the ba...
Definition array.hpp:63
Represents a collection of keys and values.
Definition dictionary.hpp:67
Provides information about a specific culture (called a locale for unmanaged code development)....
Definition culture_info.hpp:43
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:44
Contains core_export_ keyword.
Contains xtd::collections::generic::dictionary <key_t, value_t> class.
#define core_export_
Define shared library export.
Definition core_export.hpp:13
xtd::basic_string< char > string
Represents text as a sequence of UTF-8 code units.
Definition __string_definitions.hpp:43
std::int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:23
xtd::sptr< type_t > ptr
The xtd::ptr object is a shared pointer.
Definition ptr.hpp:27
Contains classes that define culture-related information, including language, country/region,...
Definition culture_info.hpp:20
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
constexpr const_pointer data() const noexcept
Gets direct access to the underlying contiguous storage.
Definition read_only_span.hpp:201
Contains xtd::object class.
Contains xtd::string alias.