tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

WordBreakIteratorLatin1.d.hpp (2484B)


      1 #ifndef icu4x_WordBreakIteratorLatin1_D_HPP
      2 #define icu4x_WordBreakIteratorLatin1_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>
     12 #include "../diplomat_runtime.hpp"
     13 
     14 namespace icu4x {
     15 class SegmenterWordType;
     16 }
     17 
     18 
     19 namespace icu4x {
     20 namespace capi {
     21    struct WordBreakIteratorLatin1;
     22 } // namespace capi
     23 } // namespace
     24 
     25 namespace icu4x {
     26 /**
     27 * See the [Rust documentation for `WordBreakIterator`](https://docs.rs/icu/latest/icu/segmenter/iterators/struct.WordBreakIterator.html) for more information.
     28 */
     29 class WordBreakIteratorLatin1 {
     30 public:
     31 
     32  /**
     33   * Finds the next breakpoint. Returns -1 if at the end of the string or if the index is
     34   * out of range of a 32-bit signed integer.
     35   *
     36   * See the [Rust documentation for `next`](https://docs.rs/icu/latest/icu/segmenter/iterators/struct.WordBreakIterator.html#method.next) for more information.
     37   */
     38  inline int32_t next();
     39 
     40  /**
     41   * Return the status value of break boundary.
     42   *
     43   * See the [Rust documentation for `word_type`](https://docs.rs/icu/latest/icu/segmenter/iterators/struct.WordBreakIterator.html#method.word_type) for more information.
     44   */
     45  inline icu4x::SegmenterWordType word_type() const;
     46 
     47  /**
     48   * Return true when break boundary is word-like such as letter/number/CJK
     49   *
     50   * See the [Rust documentation for `is_word_like`](https://docs.rs/icu/latest/icu/segmenter/iterators/struct.WordBreakIterator.html#method.is_word_like) for more information.
     51   */
     52  inline bool is_word_like() const;
     53 
     54  inline const icu4x::capi::WordBreakIteratorLatin1* AsFFI() const;
     55  inline icu4x::capi::WordBreakIteratorLatin1* AsFFI();
     56  inline static const icu4x::WordBreakIteratorLatin1* FromFFI(const icu4x::capi::WordBreakIteratorLatin1* ptr);
     57  inline static icu4x::WordBreakIteratorLatin1* FromFFI(icu4x::capi::WordBreakIteratorLatin1* ptr);
     58  inline static void operator delete(void* ptr);
     59 private:
     60  WordBreakIteratorLatin1() = delete;
     61  WordBreakIteratorLatin1(const icu4x::WordBreakIteratorLatin1&) = delete;
     62  WordBreakIteratorLatin1(icu4x::WordBreakIteratorLatin1&&) noexcept = delete;
     63  WordBreakIteratorLatin1 operator=(const icu4x::WordBreakIteratorLatin1&) = delete;
     64  WordBreakIteratorLatin1 operator=(icu4x::WordBreakIteratorLatin1&&) noexcept = delete;
     65  static void operator delete[](void*, size_t) = delete;
     66 };
     67 
     68 } // namespace
     69 #endif // icu4x_WordBreakIteratorLatin1_D_HPP