blob: dd8816816b93b4163754a092d75d2ddef2d58562 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#ifndef ICU4XTitlecaseOptionsV1_HPP
#define ICU4XTitlecaseOptionsV1_HPP
#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>
#include <algorithm>
#include <memory>
#include <variant>
#include <optional>
#include "diplomat_runtime.hpp"
#include "ICU4XTitlecaseOptionsV1.h"
#include "ICU4XLeadingAdjustment.hpp"
#include "ICU4XTrailingCase.hpp"
struct ICU4XTitlecaseOptionsV1;
/**
* See the [Rust documentation for `TitlecaseOptions`](https://docs.rs/icu/latest/icu/casemap/titlecase/struct.TitlecaseOptions.html) for more information.
*/
struct ICU4XTitlecaseOptionsV1 {
public:
ICU4XLeadingAdjustment leading_adjustment;
ICU4XTrailingCase trailing_case;
/**
* See the [Rust documentation for `default`](https://docs.rs/icu/latest/icu/casemap/titlecase/struct.TitlecaseOptions.html#method.default) for more information.
*/
static ICU4XTitlecaseOptionsV1 default_options();
};
inline ICU4XTitlecaseOptionsV1 ICU4XTitlecaseOptionsV1::default_options() {
capi::ICU4XTitlecaseOptionsV1 diplomat_raw_struct_out_value = capi::ICU4XTitlecaseOptionsV1_default_options();
return ICU4XTitlecaseOptionsV1{ .leading_adjustment = std::move(static_cast<ICU4XLeadingAdjustment>(diplomat_raw_struct_out_value.leading_adjustment)), .trailing_case = std::move(static_cast<ICU4XTrailingCase>(diplomat_raw_struct_out_value.trailing_case)) };
}
#endif
|