1#ifndef icu4x_LineSegmenter_D_HPP
2#define icu4x_LineSegmenter_D_HPP
15namespace capi {
struct DataProvider; }
17namespace capi {
struct LineBreakIteratorLatin1; }
19namespace capi {
struct LineBreakIteratorUtf16; }
21namespace capi {
struct LineBreakIteratorUtf8; }
23namespace capi {
struct LineSegmenter; }
25namespace capi {
struct Locale; }
53 inline static std::unique_ptr<icu4x::LineSegmenter>
create_auto();
61 inline static std::unique_ptr<icu4x::LineSegmenter>
create_lstm();
127 inline std::unique_ptr<icu4x::LineBreakIteratorUtf8>
segment(std::string_view input)
const;
137 inline std::unique_ptr<icu4x::LineBreakIteratorUtf16>
segment16(std::u16string_view input)
const;
146 inline const icu4x::capi::LineSegmenter* AsFFI()
const;
147 inline icu4x::capi::LineSegmenter* AsFFI();
150 inline static void operator delete(
void* ptr);
152 LineSegmenter() =
delete;
157 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 LineBreakIteratorLatin1.d.hpp:25
Definition LineBreakIteratorUtf16.d.hpp:25
Definition LineBreakIteratorUtf8.d.hpp:25
Definition LineSegmenter.d.hpp:44
static std::unique_ptr< icu4x::LineSegmenter > create_dictionary_with_options_v2(const icu4x::Locale *content_locale, icu4x::LineBreakOptionsV2 options)
Definition LineSegmenter.hpp:102
std::unique_ptr< icu4x::LineBreakIteratorLatin1 > segment_latin1(diplomat::span< const uint8_t > input) const
Definition LineSegmenter.hpp:127
std::unique_ptr< icu4x::LineBreakIteratorUtf16 > segment16(std::u16string_view input) const
Definition LineSegmenter.hpp:121
std::unique_ptr< icu4x::LineBreakIteratorUtf8 > segment(std::string_view input) const
Definition LineSegmenter.hpp:115
static std::unique_ptr< icu4x::LineSegmenter > create_auto_with_options_v2(const icu4x::Locale *content_locale, icu4x::LineBreakOptionsV2 options)
Definition LineSegmenter.hpp:76
static diplomat::result< std::unique_ptr< icu4x::LineSegmenter >, icu4x::DataError > create_lstm_with_options_v2_and_provider(const icu4x::DataProvider &provider, const icu4x::Locale *content_locale, icu4x::LineBreakOptionsV2 options)
Definition LineSegmenter.hpp:95
static std::unique_ptr< icu4x::LineSegmenter > create_lstm_with_options_v2(const icu4x::Locale *content_locale, icu4x::LineBreakOptionsV2 options)
Definition LineSegmenter.hpp:89
static std::unique_ptr< icu4x::LineSegmenter > create_dictionary()
Definition LineSegmenter.hpp:71
static std::unique_ptr< icu4x::LineSegmenter > create_lstm()
Definition LineSegmenter.hpp:66
static diplomat::result< std::unique_ptr< icu4x::LineSegmenter >, icu4x::DataError > create_auto_with_options_v2_and_provider(const icu4x::DataProvider &provider, const icu4x::Locale *content_locale, icu4x::LineBreakOptionsV2 options)
Definition LineSegmenter.hpp:82
static diplomat::result< std::unique_ptr< icu4x::LineSegmenter >, icu4x::DataError > create_dictionary_with_options_v2_and_provider(const icu4x::DataProvider &provider, const icu4x::Locale *content_locale, icu4x::LineBreakOptionsV2 options)
Definition LineSegmenter.hpp:108
static std::unique_ptr< icu4x::LineSegmenter > create_auto()
Definition LineSegmenter.hpp:61
Definition Locale.d.hpp:33
Definition LineBreakOptionsV2.d.hpp:38