1#ifndef icu4x_SentenceSegmenter_D_HPP
2#define icu4x_SentenceSegmenter_D_HPP
15namespace capi {
struct DataProvider; }
17namespace capi {
struct Locale; }
19namespace capi {
struct SentenceBreakIteratorLatin1; }
21namespace capi {
struct SentenceBreakIteratorUtf16; }
23namespace capi {
struct SentenceBreakIteratorUtf8; }
25namespace capi {
struct SentenceSegmenter; }
33 struct SentenceSegmenter;
43class SentenceSegmenter {
51 inline static std::unique_ptr<icu4x::SentenceSegmenter>
create();
71 inline std::unique_ptr<icu4x::SentenceBreakIteratorUtf8>
segment(std::string_view input)
const;
81 inline std::unique_ptr<icu4x::SentenceBreakIteratorUtf16>
segment16(std::u16string_view input)
const;
90 inline const icu4x::capi::SentenceSegmenter* AsFFI()
const;
91 inline icu4x::capi::SentenceSegmenter* AsFFI();
94 inline static void operator delete(
void* ptr);
96 SentenceSegmenter() =
delete;
101 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 Locale.d.hpp:33
Definition SentenceBreakIteratorLatin1.d.hpp:25
Definition SentenceBreakIteratorUtf16.d.hpp:25
Definition SentenceBreakIteratorUtf8.d.hpp:25
Definition SentenceSegmenter.d.hpp:43
std::unique_ptr< icu4x::SentenceBreakIteratorUtf8 > segment(std::string_view input) const
Definition SentenceSegmenter.hpp:63
static std::unique_ptr< icu4x::SentenceSegmenter > create()
Definition SentenceSegmenter.hpp:47
static diplomat::result< std::unique_ptr< icu4x::SentenceSegmenter >, icu4x::DataError > create_with_content_locale(const icu4x::Locale &locale)
Definition SentenceSegmenter.hpp:52
std::unique_ptr< icu4x::SentenceBreakIteratorLatin1 > segment_latin1(diplomat::span< const uint8_t > input) const
Definition SentenceSegmenter.hpp:75
std::unique_ptr< icu4x::SentenceBreakIteratorUtf16 > segment16(std::u16string_view input) const
Definition SentenceSegmenter.hpp:69
static diplomat::result< std::unique_ptr< icu4x::SentenceSegmenter >, icu4x::DataError > create_with_content_locale_and_provider(const icu4x::DataProvider &provider, const icu4x::Locale &locale)
Definition SentenceSegmenter.hpp:57