ICU4X
International Components for Unicode
Loading...
Searching...
No Matches
GraphemeClusterSegmenter.d.hpp
Go to the documentation of this file.
1#ifndef ICU4X_GraphemeClusterSegmenter_D_HPP
2#define ICU4X_GraphemeClusterSegmenter_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>
12#include "diplomat_runtime.hpp"
13namespace icu4x {
14namespace capi { struct DataProvider; }
15class DataProvider;
16namespace capi { struct GraphemeClusterBreakIteratorLatin1; }
18namespace capi { struct GraphemeClusterBreakIteratorUtf16; }
20namespace capi { struct GraphemeClusterBreakIteratorUtf8; }
22namespace capi { struct GraphemeClusterSegmenter; }
24class DataError;
25} // namespace icu4x
26
27
28
29namespace icu4x {
30namespace capi {
31 struct GraphemeClusterSegmenter;
32} // namespace capi
33} // namespace
34
35namespace icu4x {
42class GraphemeClusterSegmenter {
43public:
44
50 inline static std::unique_ptr<icu4x::GraphemeClusterSegmenter> create();
51
58
67 inline std::unique_ptr<icu4x::GraphemeClusterBreakIteratorUtf8> segment(std::string_view input) const;
68
77 inline std::unique_ptr<icu4x::GraphemeClusterBreakIteratorUtf16> segment16(std::u16string_view input) const;
78
84 inline std::unique_ptr<icu4x::GraphemeClusterBreakIteratorLatin1> segment_latin1(icu4x::diplomat::span<const uint8_t> input) const;
85
86 inline const icu4x::capi::GraphemeClusterSegmenter* AsFFI() const;
87 inline icu4x::capi::GraphemeClusterSegmenter* AsFFI();
88 inline static const icu4x::GraphemeClusterSegmenter* FromFFI(const icu4x::capi::GraphemeClusterSegmenter* ptr);
89 inline static icu4x::GraphemeClusterSegmenter* FromFFI(icu4x::capi::GraphemeClusterSegmenter* ptr);
90 inline static void operator delete(void* ptr);
91private:
92 GraphemeClusterSegmenter() = delete;
93 GraphemeClusterSegmenter(const icu4x::GraphemeClusterSegmenter&) = delete;
94 GraphemeClusterSegmenter(icu4x::GraphemeClusterSegmenter&&) noexcept = delete;
95 GraphemeClusterSegmenter operator=(const icu4x::GraphemeClusterSegmenter&) = delete;
96 GraphemeClusterSegmenter operator=(icu4x::GraphemeClusterSegmenter&&) noexcept = delete;
97 static void operator delete[](void*, size_t) = delete;
98};
99
100} // namespace
101#endif // ICU4X_GraphemeClusterSegmenter_D_HPP
Definition DataError.d.hpp:37
Definition DataProvider.d.hpp:40
Definition GraphemeClusterBreakIteratorLatin1.d.hpp:25
Definition GraphemeClusterBreakIteratorUtf16.d.hpp:25
Definition GraphemeClusterBreakIteratorUtf8.d.hpp:25
Definition GraphemeClusterSegmenter.d.hpp:42
std::unique_ptr< icu4x::GraphemeClusterBreakIteratorLatin1 > segment_latin1(icu4x::diplomat::span< const uint8_t > input) const
Definition GraphemeClusterSegmenter.hpp:65
std::unique_ptr< icu4x::GraphemeClusterBreakIteratorUtf16 > segment16(std::u16string_view input) const
Definition GraphemeClusterSegmenter.hpp:59
static icu4x::diplomat::result< std::unique_ptr< icu4x::GraphemeClusterSegmenter >, icu4x::DataError > create_with_provider(const icu4x::DataProvider &provider)
Definition GraphemeClusterSegmenter.hpp:48
std::unique_ptr< icu4x::GraphemeClusterBreakIteratorUtf8 > segment(std::string_view input) const
Definition GraphemeClusterSegmenter.hpp:53
static std::unique_ptr< icu4x::GraphemeClusterSegmenter > create()
Definition GraphemeClusterSegmenter.hpp:43
Definition diplomat_runtime.hpp:166
Definition diplomat_runtime.hpp:252
Definition Bidi.d.hpp:13