ICU4X
International Components for Unicode
Loading...
Searching...
No Matches
ListFormatter.d.hpp
Go to the documentation of this file.
1#ifndef icu4x_ListFormatter_D_HPP
2#define icu4x_ListFormatter_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>
13
14namespace icu4x {
15namespace capi { struct DataProvider; }
16class DataProvider;
17namespace capi { struct ListFormatter; }
18class ListFormatter;
19namespace capi { struct Locale; }
20class Locale;
21class DataError;
22class ListLength;
23}
24
25
26namespace icu4x {
27namespace capi {
28 struct ListFormatter;
29} // namespace capi
30} // namespace
31
32namespace icu4x {
36class ListFormatter {
37public:
38
45
52
59
66
73
80
84 inline std::string format(diplomat::span<const std::string_view> list) const;
85
89 inline std::string format16(diplomat::span<const std::u16string_view> list) const;
90
91 inline const icu4x::capi::ListFormatter* AsFFI() const;
92 inline icu4x::capi::ListFormatter* AsFFI();
93 inline static const icu4x::ListFormatter* FromFFI(const icu4x::capi::ListFormatter* ptr);
94 inline static icu4x::ListFormatter* FromFFI(icu4x::capi::ListFormatter* ptr);
95 inline static void operator delete(void* ptr);
96private:
97 ListFormatter() = delete;
98 ListFormatter(const icu4x::ListFormatter&) = delete;
99 ListFormatter(icu4x::ListFormatter&&) noexcept = delete;
100 ListFormatter operator=(const icu4x::ListFormatter&) = delete;
101 ListFormatter operator=(icu4x::ListFormatter&&) noexcept = delete;
102 static void operator delete[](void*, size_t) = delete;
103};
104
105} // namespace
106#endif // icu4x_ListFormatter_D_HPP
Definition diplomat_runtime.hpp:140
Definition diplomat_runtime.hpp:223
Definition DataError.d.hpp:37
Definition DataProvider.d.hpp:40
Definition ListFormatter.d.hpp:36
static diplomat::result< std::unique_ptr< icu4x::ListFormatter >, icu4x::DataError > create_or_with_length(const icu4x::Locale &locale, icu4x::ListLength length)
Definition ListFormatter.hpp:66
std::string format16(diplomat::span< const std::u16string_view > list) const
Definition ListFormatter.hpp:101
std::string format(diplomat::span< const std::string_view > list) const
Definition ListFormatter.hpp:92
static diplomat::result< std::unique_ptr< icu4x::ListFormatter >, icu4x::DataError > create_and_with_length_and_provider(const icu4x::DataProvider &provider, const icu4x::Locale &locale, icu4x::ListLength length)
Definition ListFormatter.hpp:59
static diplomat::result< std::unique_ptr< icu4x::ListFormatter >, icu4x::DataError > create_unit_with_length_and_provider(const icu4x::DataProvider &provider, const icu4x::Locale &locale, icu4x::ListLength length)
Definition ListFormatter.hpp:85
static diplomat::result< std::unique_ptr< icu4x::ListFormatter >, icu4x::DataError > create_and_with_length(const icu4x::Locale &locale, icu4x::ListLength length)
Definition ListFormatter.hpp:53
static diplomat::result< std::unique_ptr< icu4x::ListFormatter >, icu4x::DataError > create_or_with_length_and_provider(const icu4x::DataProvider &provider, const icu4x::Locale &locale, icu4x::ListLength length)
Definition ListFormatter.hpp:72
static diplomat::result< std::unique_ptr< icu4x::ListFormatter >, icu4x::DataError > create_unit_with_length(const icu4x::Locale &locale, icu4x::ListLength length)
Definition ListFormatter.hpp:79
Definition ListLength.d.hpp:31
Definition Locale.d.hpp:33
Definition Bidi.d.hpp:14