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>
13
14namespace icu4x {
15namespace capi { struct DataProvider; }
16class DataProvider;
17namespace capi { struct GraphemeClusterBreakIteratorLatin1; }
19namespace capi { struct GraphemeClusterBreakIteratorUtf16; }
21namespace capi { struct GraphemeClusterBreakIteratorUtf8; }
23namespace capi { struct GraphemeClusterSegmenter; }
25class DataError;
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(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 diplomat_runtime.hpp:140
Definition diplomat_runtime.hpp:223
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(diplomat::span< const uint8_t > input) const
Definition GraphemeClusterSegmenter.hpp:65
static diplomat::result< std::unique_ptr< icu4x::GraphemeClusterSegmenter >, icu4x::DataError > create_with_provider(const icu4x::DataProvider &provider)
Definition GraphemeClusterSegmenter.hpp:48
std::unique_ptr< icu4x::GraphemeClusterBreakIteratorUtf16 > segment16(std::u16string_view input) const
Definition GraphemeClusterSegmenter.hpp:59
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 Bidi.d.hpp:14