ICU4X
International Components for Unicode
Loading...
Searching...
No Matches
CollatorResolvedOptionsV1.hpp
Go to the documentation of this file.
1#ifndef ICU4X_CollatorResolvedOptionsV1_HPP
2#define ICU4X_CollatorResolvedOptionsV1_HPP
3
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#include "CollatorCaseFirst.hpp"
16#include "CollatorCaseLevel.hpp"
19#include "CollatorStrength.hpp"
20#include "diplomat_runtime.hpp"
21
22
23namespace icu4x {
24namespace capi {
25
26} // namespace capi
27} // namespace
28
29
30inline icu4x::capi::CollatorResolvedOptionsV1 icu4x::CollatorResolvedOptionsV1::AsFFI() const {
31 return icu4x::capi::CollatorResolvedOptionsV1 {
32 /* .strength = */ strength.AsFFI(),
33 /* .alternate_handling = */ alternate_handling.AsFFI(),
34 /* .case_first = */ case_first.AsFFI(),
35 /* .max_variable = */ max_variable.AsFFI(),
36 /* .case_level = */ case_level.AsFFI(),
37 /* .numeric = */ numeric.AsFFI(),
38 };
39}
40
41inline icu4x::CollatorResolvedOptionsV1 icu4x::CollatorResolvedOptionsV1::FromFFI(icu4x::capi::CollatorResolvedOptionsV1 c_struct) {
42 return icu4x::CollatorResolvedOptionsV1 {
43 /* .strength = */ icu4x::CollatorStrength::FromFFI(c_struct.strength),
44 /* .alternate_handling = */ icu4x::CollatorAlternateHandling::FromFFI(c_struct.alternate_handling),
45 /* .case_first = */ icu4x::CollatorCaseFirst::FromFFI(c_struct.case_first),
46 /* .max_variable = */ icu4x::CollatorMaxVariable::FromFFI(c_struct.max_variable),
47 /* .case_level = */ icu4x::CollatorCaseLevel::FromFFI(c_struct.case_level),
48 /* .numeric = */ icu4x::CollatorNumericOrdering::FromFFI(c_struct.numeric),
49 };
50}
51
52
53#endif // ICU4X_CollatorResolvedOptionsV1_HPP
Definition Bidi.d.hpp:13
icu4x::CollatorCaseFirst case_first
Definition CollatorResolvedOptionsV1.d.hpp:53
icu4x::CollatorNumericOrdering numeric
Definition CollatorResolvedOptionsV1.d.hpp:56
icu4x::CollatorMaxVariable max_variable
Definition CollatorResolvedOptionsV1.d.hpp:54
icu4x::CollatorCaseLevel case_level
Definition CollatorResolvedOptionsV1.d.hpp:55
icu4x::CollatorStrength strength
Definition CollatorResolvedOptionsV1.d.hpp:51
icu4x::CollatorAlternateHandling alternate_handling
Definition CollatorResolvedOptionsV1.d.hpp:52