CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
date_time_styles.h
1
2#pragma once
3
4#include <cstdint>
5#include <system/details/enum_meta_info.h>
6#include <system/enum_helpers.h>
7
8namespace System { namespace Globalization {
9
11enum class DateTimeStyles : int32_t
12{
14 None = 0x00000000,
16 AllowLeadingWhite = 0x00000001,
18 AllowTrailingWhite = 0x00000002,
20 AllowInnerWhite = 0x00000004,
24 NoCurrentDateDefault = 0x00000008,
26 AdjustToUniversal = 0x00000010,
28 AssumeLocal = 0x00000020,
30 AssumeUniversal = 0x00000040,
32 RoundtripKind = 0x00000080
33};
34
37DECLARE_ENUM_OPERATORS(System::Globalization::DateTimeStyles);
38DECLARE_USING_GLOBAL_OPERATORS
40}} // namespace System::Globalization
41
42DECLARE_USING_ENUM_OPERATORS(System::Globalization);
43
44template<>
45struct EnumMetaInfo<System::Globalization::DateTimeStyles>
46{
47 typedef void Flags;
48 static ASPOSECPP_SHARED_API const std::array<std::pair<System::Globalization::DateTimeStyles, const char16_t*>, 10>& values();
49};
Definition: fwd.h:60
DateTimeStyles
Defines date and time formatting options. Bit flags.
Definition: date_time_styles.h:12
@ RoundtripKind
Attempt to preserve whether the input is unspecified, local or UTC.
@ AllowTrailingWhite
Ignore trailing white spaces.
@ AllowWhiteSpaces
Ignore all white spaces.
@ NoCurrentDateDefault
When parsing a date/time string, if all year/month/day are missing, set the default date to 0001/1/1,...
@ AssumeLocal
If no timezone is given, use local timezone.
@ AdjustToUniversal
When parsing a date/time string, if a timezone specifier ("GMT","Z","+xxxx", "-xxxx" exists),...
@ AllowInnerWhite
Ignore inner white spaces.
@ AllowLeadingWhite
Ignore leading white spaces.
@ AssumeUniversal
If no timezone is given, use UTC.
Definition: db_command.h:9