ICU4X
International Components for Unicode
Loading...
Searching...
No Matches
WeekInformation.d.hpp
Go to the documentation of this file.
1#ifndef ICU4X_WeekInformation_D_HPP
2#define ICU4X_WeekInformation_D_HPP
3
4#include <stdio.h>
5#include <stdint.h>
6#include <stddef.h>
7#include <stdbool.h>
8#include <memory>
9#include <functional>
10#include <optional>
11#include <cstdlib>
12#include "diplomat_runtime.hpp"
13namespace icu4x {
14namespace capi { struct DataProvider; }
15class DataProvider;
16namespace capi { struct Locale; }
17class Locale;
18namespace capi { struct WeekInformation; }
19class WeekInformation;
20namespace capi { struct WeekdaySetIterator; }
22class DataError;
23class Weekday;
24} // namespace icu4x
25
26
27
28namespace icu4x {
29namespace capi {
30 struct WeekInformation;
31} // namespace capi
32} // namespace
33
34namespace icu4x {
40class WeekInformation {
41public:
42
49
56
62 inline icu4x::Weekday first_weekday() const;
63
69 inline bool is_weekend(icu4x::Weekday day) const;
70
74 inline std::unique_ptr<icu4x::WeekdaySetIterator> weekend() const;
75
76 inline const icu4x::capi::WeekInformation* AsFFI() const;
77 inline icu4x::capi::WeekInformation* AsFFI();
78 inline static const icu4x::WeekInformation* FromFFI(const icu4x::capi::WeekInformation* ptr);
79 inline static icu4x::WeekInformation* FromFFI(icu4x::capi::WeekInformation* ptr);
80 inline static void operator delete(void* ptr);
81private:
82 WeekInformation() = delete;
83 WeekInformation(const icu4x::WeekInformation&) = delete;
84 WeekInformation(icu4x::WeekInformation&&) noexcept = delete;
85 WeekInformation operator=(const icu4x::WeekInformation&) = delete;
86 WeekInformation operator=(icu4x::WeekInformation&&) noexcept = delete;
87 static void operator delete[](void*, size_t) = delete;
88};
89
90} // namespace
91#endif // ICU4X_WeekInformation_D_HPP
Definition DataError.d.hpp:37
Definition DataProvider.d.hpp:40
Definition Locale.d.hpp:33
Definition WeekInformation.d.hpp:40
std::unique_ptr< icu4x::WeekdaySetIterator > weekend() const
Definition WeekInformation.hpp:66
icu4x::Weekday first_weekday() const
Definition WeekInformation.hpp:55
static icu4x::diplomat::result< std::unique_ptr< icu4x::WeekInformation >, icu4x::DataError > create(const icu4x::Locale &locale)
Definition WeekInformation.hpp:44
bool is_weekend(icu4x::Weekday day) const
Definition WeekInformation.hpp:60
static icu4x::diplomat::result< std::unique_ptr< icu4x::WeekInformation >, icu4x::DataError > create_with_provider(const icu4x::DataProvider &provider, const icu4x::Locale &locale)
Definition WeekInformation.hpp:49
Definition WeekdaySetIterator.d.hpp:31
Definition Weekday.d.hpp:35
Definition diplomat_runtime.hpp:166
Definition Bidi.d.hpp:13