ICU4X
International Components for Unicode
Loading...
Searching...
No Matches
IsoWeekOfYear.hpp
Go to the documentation of this file.
1#ifndef ICU4X_IsoWeekOfYear_HPP
2#define ICU4X_IsoWeekOfYear_HPP
3
4#include "IsoWeekOfYear.d.hpp"
5
6#include <stdio.h>
7#include <stdint.h>
8#include <stddef.h>
9#include <stdbool.h>
10#include <memory>
11#include <functional>
12#include <optional>
13#include <cstdlib>
14#include "diplomat_runtime.hpp"
15
16
17namespace icu4x {
18namespace capi {
19
20} // namespace capi
21} // namespace
22
23
24inline icu4x::capi::IsoWeekOfYear icu4x::IsoWeekOfYear::AsFFI() const {
25 return icu4x::capi::IsoWeekOfYear {
26 /* .week_number = */ week_number,
27 /* .iso_year = */ iso_year,
28 };
29}
30
31inline icu4x::IsoWeekOfYear icu4x::IsoWeekOfYear::FromFFI(icu4x::capi::IsoWeekOfYear c_struct) {
32 return icu4x::IsoWeekOfYear {
33 /* .week_number = */ c_struct.week_number,
34 /* .iso_year = */ c_struct.iso_year,
35 };
36}
37
38
39#endif // ICU4X_IsoWeekOfYear_HPP
Definition Bidi.d.hpp:13
uint8_t week_number
Definition IsoWeekOfYear.d.hpp:32
int32_t iso_year
Definition IsoWeekOfYear.d.hpp:33