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>
15
16
17namespace icu4x {
18namespace capi {
19 extern "C" {
20
21 } // extern "C"
22} // namespace capi
23} // namespace
24
25
26inline icu4x::capi::IsoWeekOfYear icu4x::IsoWeekOfYear::AsFFI() const {
27 return icu4x::capi::IsoWeekOfYear {
28 /* .week_number = */ week_number,
29 /* .iso_year = */ iso_year,
30 };
31}
32
33inline icu4x::IsoWeekOfYear icu4x::IsoWeekOfYear::FromFFI(icu4x::capi::IsoWeekOfYear c_struct) {
34 return icu4x::IsoWeekOfYear {
35 /* .week_number = */ c_struct.week_number,
36 /* .iso_year = */ c_struct.iso_year,
37 };
38}
39
40
41#endif // icu4x_IsoWeekOfYear_HPP
Definition Bidi.d.hpp:14
uint8_t week_number
Definition IsoWeekOfYear.d.hpp:29
int32_t iso_year
Definition IsoWeekOfYear.d.hpp:30