xtd 0.2.0
Loading...
Searching...
No Matches
date_time_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 enum class day_of_week;
17
19 namespace globalization {
21 class culture_info;
23
43 public:
45
58
60
68 date_time_format_info& abreviated_day_names(const xtd::array<xtd::string>& value) noexcept;
69
70 const xtd::array<xtd::string>& abreviated_month_genitive_names() const noexcept;
71 date_time_format_info& abreviated_month_genitive_names(const xtd::array<xtd::string>& value) noexcept;
72
73 const xtd::array<xtd::string>& abreviated_month_names() const noexcept;
74 date_time_format_info& abreviated_month_names(const xtd::array<xtd::string>& value) noexcept;
75
76 const xtd::string& am_designator() const noexcept;
77 date_time_format_info& am_designator(const xtd::string& value) noexcept;
78
79 const xtd::string& date_separator() const noexcept;
80 date_time_format_info& date_separator(const xtd::string& value) noexcept;
81
82 const xtd::array<xtd::string>& day_names() const noexcept;
83 date_time_format_info& day_names(const xtd::array<xtd::string>& value) noexcept;
84
85 xtd::day_of_week first_day_of_week() const noexcept;
86 date_time_format_info& first_day_of_week(xtd::day_of_week value) noexcept;
87
88 const string& full_date_time_pattern() const noexcept;
89 date_time_format_info& full_date_time_pattern(const string& value) noexcept;
90
91 const string& long_date_pattern() const noexcept;
92 date_time_format_info& long_date_pattern(const string& value) noexcept;
93
94 const string& long_time_pattern() const noexcept;
95 date_time_format_info& long_time_pattern(const string& value) noexcept;
96
97 const string& month_day_pattern() const noexcept;
98 date_time_format_info& month_day_pattern(const string& value) noexcept;
99
100 const xtd::array<xtd::string>& month_genitive_names() const noexcept;
101 date_time_format_info& month_genitive_names(const xtd::array<xtd::string>& value) noexcept;
102
103 const xtd::array<xtd::string>& month_names() const noexcept;
104 date_time_format_info& month_names(const xtd::array<xtd::string>& value) noexcept;
105
106 const xtd::string& native_calendar_name() const noexcept;
107 date_time_format_info& native_calendar_name(const xtd::string& value) noexcept;
108
109 const xtd::string& pm_designator() const noexcept;
110 date_time_format_info& pm_designator(const xtd::string& value) noexcept;
111
112 const string& rfc_1123_pattern() const noexcept;
113 date_time_format_info& rfc_1123_pattern(const string& value) noexcept;
114
115 const string& short_date_pattern() const noexcept;
116 date_time_format_info& short_date_pattern(const string& value) noexcept;
117
118 const string& short_time_pattern() const noexcept;
119 date_time_format_info& short_time_pattern(const string& value) noexcept;
120
121 const xtd::array<xtd::string>& shortest_day_names() const noexcept;
122 date_time_format_info& shortest_day_names(const xtd::array<xtd::string>& value) noexcept;
123
124 const string& sortable_date_time_pattern() const noexcept;
125 date_time_format_info& sortable_date_time_pattern(const string& value) noexcept;
126
127 const xtd::string& time_separator() const noexcept;
128 date_time_format_info& time_separator(const xtd::string& value) noexcept;
129
130 const string& universal_sortable_date_time_pattern() const noexcept;
131 date_time_format_info& universal_sortable_date_time_pattern(const string& value) noexcept;
132
133 const string& year_month_pattern() const noexcept;
134 date_time_format_info& year_month_pattern(const string& value) noexcept;
136
138
140 static const date_time_format_info& current_info() noexcept;
141
142 static const date_time_format_info& invariant_info() noexcept;
144
146
149
151
154
156
159
161 date_time_format_info& operator =(date_time_format_info&& culture) = default;
162 date_time_format_info& operator =(const date_time_format_info& culture);
164
165 private:
166 friend class culture_info;
167 date_time_format_info(xtd::array<xtd::string>&& abreviated_day_names, xtd::array<xtd::string>&& abreviated_genitive_month_names, xtd::array<xtd::string>&& abreviated_month_names, xtd::string&& am_designator, xtd::string&& date_separator, xtd::array<xtd::string>&& day_names, xtd::day_of_week first_day_of_week, xtd::string&& full_date_time_pattern, xtd::string&& long_date_pattern, xtd::string&& long_time_pattern, xtd::string&& month_day_pattern, xtd::array<xtd::string>&& month_genitive_names, xtd::array<xtd::string>&& month_names, xtd::string&& native_calendar_name, xtd::string&& pm_designator, xtd::string&& rfc_1123_pattern, xtd::string&& short_date_pattern, xtd::string&& short_time_pattern, xtd::array<xtd::string>&& shortest_day_names, xtd::string&& sortable_date_time_pattern, xtd::string&& time_separator, xtd::string&& universal_sortable_date_time_pattern, xtd::string&& year_month_pattern);
168 static xtd::collections::generic::dictionary<xtd::string, date_time_format_info>& formats();
169
170 struct data;
171 ptr<data> data_;
172 };
173 }
174}
Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the ba...
Definition array.hpp:63
Provides information about a specific culture (called a locale for unmanaged code development)....
Definition culture_info.hpp:43
date_time_format_info(date_time_format_info &&info)=default
Initializes a new instance of the xtd::globalization::date_time_format_info class with specified info...
date_time_format_info()
Initializes a new instance of the xtd::globalization::date_time_format_info class.
date_time_format_info(const date_time_format_info &info)
Initializes a new instance of the xtd::globalization::date_time_format_info class with specified infp...
const xtd::array< xtd::string > & abreviated_day_names() const noexcept
Gets a one-dimensional array of type String containing the culture-specific abbreviated names of the ...
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::sptr< type_t > ptr
The xtd::ptr object is a shared pointer.
Definition ptr.hpp:27
day_of_week
Specifies the day of the week.
Definition day_of_week.hpp:25
The xtd::collections namespace contains interfaces and classes that define various collections of obj...
Definition any_pair.hpp:10
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.