1#ifndef icu4x_GraphemeClusterSegmenter_D_HPP
2#define icu4x_GraphemeClusterSegmenter_D_HPP
15namespace capi {
struct DataProvider; }
17namespace capi {
struct GraphemeClusterBreakIteratorLatin1; }
19namespace capi {
struct GraphemeClusterBreakIteratorUtf16; }
21namespace capi {
struct GraphemeClusterBreakIteratorUtf8; }
23namespace capi {
struct GraphemeClusterSegmenter; }
31 struct GraphemeClusterSegmenter;
42class GraphemeClusterSegmenter {
50 inline static std::unique_ptr<icu4x::GraphemeClusterSegmenter>
create();
67 inline std::unique_ptr<icu4x::GraphemeClusterBreakIteratorUtf8>
segment(std::string_view input)
const;
77 inline std::unique_ptr<icu4x::GraphemeClusterBreakIteratorUtf16>
segment16(std::u16string_view input)
const;
86 inline const icu4x::capi::GraphemeClusterSegmenter* AsFFI()
const;
87 inline icu4x::capi::GraphemeClusterSegmenter* AsFFI();
90 inline static void operator delete(
void* ptr);
92 GraphemeClusterSegmenter() =
delete;
97 static void operator delete[](
void*, size_t) =
delete;
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