1#ifndef ICU4XSentenceSegmenter_HPP
2#define ICU4XSentenceSegmenter_HPP
12#include "ICU4XSentenceSegmenter.h"
24struct ICU4XSentenceSegmenterDeleter {
25 void operator()(capi::ICU4XSentenceSegmenter* l)
const noexcept {
26 capi::ICU4XSentenceSegmenter_destroy(l);
77 inline const capi::ICU4XSentenceSegmenter* AsFFI()
const {
return this->inner.get(); }
78 inline capi::ICU4XSentenceSegmenter* AsFFIMut() {
return this->inner.get(); }
87#include "ICU4XDataProvider.hpp"
93 auto diplomat_result_raw_out_value = capi::ICU4XSentenceSegmenter_create(provider.AsFFI());
95 if (diplomat_result_raw_out_value.is_ok) {
100 return diplomat_result_out_value;
ICU4XError
Definition ICU4XError.hpp:23
Definition ICU4XDataProvider.hpp:32
Definition ICU4XSentenceBreakIteratorLatin1.hpp:27
Definition ICU4XSentenceBreakIteratorUtf16.hpp:27
Definition ICU4XSentenceBreakIteratorUtf8.hpp:27
Definition ICU4XSentenceSegmenter.hpp:35
ICU4XSentenceSegmenter()=default
ICU4XSentenceBreakIteratorUtf8 segment_utf8(const std::string_view input) const
Definition ICU4XSentenceSegmenter.hpp:102
ICU4XSentenceSegmenter(ICU4XSentenceSegmenter &&) noexcept=default
ICU4XSentenceBreakIteratorLatin1 segment_latin1(const diplomat::span< const uint8_t > input) const
Definition ICU4XSentenceSegmenter.hpp:108
static diplomat::result< ICU4XSentenceSegmenter, ICU4XError > create(const ICU4XDataProvider &provider)
Definition ICU4XSentenceSegmenter.hpp:92
ICU4XSentenceSegmenter(capi::ICU4XSentenceSegmenter *i)
Definition ICU4XSentenceSegmenter.hpp:79
ICU4XSentenceBreakIteratorUtf16 segment_utf16(const std::u16string_view input) const
Definition ICU4XSentenceSegmenter.hpp:105
Definition diplomat_runtime.hpp:84
Definition diplomat_runtime.hpp:144
constexpr T * data() const noexcept
Definition diplomat_runtime.hpp:152
constexpr size_t size() const noexcept
Definition diplomat_runtime.hpp:155
Definition diplomat_runtime.hpp:69
Definition diplomat_runtime.hpp:55