tor-browser

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

LineSegmenter.h (2784B)


      1 #ifndef LineSegmenter_H
      2 #define LineSegmenter_H
      3 
      4 #include <stdio.h>
      5 #include <stdint.h>
      6 #include <stddef.h>
      7 #include <stdbool.h>
      8 #include "diplomat_runtime.h"
      9 
     10 #include "DataError.d.h"
     11 #include "DataProvider.d.h"
     12 #include "LineBreakIteratorLatin1.d.h"
     13 #include "LineBreakIteratorUtf16.d.h"
     14 #include "LineBreakIteratorUtf8.d.h"
     15 #include "LineBreakOptionsV2.d.h"
     16 #include "Locale.d.h"
     17 
     18 #include "LineSegmenter.d.h"
     19 
     20 
     21 
     22 
     23 
     24 
     25 LineSegmenter* icu4x_LineSegmenter_create_auto_mv1(void);
     26 
     27 LineSegmenter* icu4x_LineSegmenter_create_lstm_mv1(void);
     28 
     29 LineSegmenter* icu4x_LineSegmenter_create_dictionary_mv1(void);
     30 
     31 LineSegmenter* icu4x_LineSegmenter_create_auto_with_options_v2_mv1(const Locale* content_locale, LineBreakOptionsV2 options);
     32 
     33 typedef struct icu4x_LineSegmenter_create_auto_with_options_v2_and_provider_mv1_result {union {LineSegmenter* ok; DataError err;}; bool is_ok;} icu4x_LineSegmenter_create_auto_with_options_v2_and_provider_mv1_result;
     34 icu4x_LineSegmenter_create_auto_with_options_v2_and_provider_mv1_result icu4x_LineSegmenter_create_auto_with_options_v2_and_provider_mv1(const DataProvider* provider, const Locale* content_locale, LineBreakOptionsV2 options);
     35 
     36 LineSegmenter* icu4x_LineSegmenter_create_lstm_with_options_v2_mv1(const Locale* content_locale, LineBreakOptionsV2 options);
     37 
     38 typedef struct icu4x_LineSegmenter_create_lstm_with_options_v2_and_provider_mv1_result {union {LineSegmenter* ok; DataError err;}; bool is_ok;} icu4x_LineSegmenter_create_lstm_with_options_v2_and_provider_mv1_result;
     39 icu4x_LineSegmenter_create_lstm_with_options_v2_and_provider_mv1_result icu4x_LineSegmenter_create_lstm_with_options_v2_and_provider_mv1(const DataProvider* provider, const Locale* content_locale, LineBreakOptionsV2 options);
     40 
     41 LineSegmenter* icu4x_LineSegmenter_create_dictionary_with_options_v2_mv1(const Locale* content_locale, LineBreakOptionsV2 options);
     42 
     43 typedef struct icu4x_LineSegmenter_create_dictionary_with_options_v2_and_provider_mv1_result {union {LineSegmenter* ok; DataError err;}; bool is_ok;} icu4x_LineSegmenter_create_dictionary_with_options_v2_and_provider_mv1_result;
     44 icu4x_LineSegmenter_create_dictionary_with_options_v2_and_provider_mv1_result icu4x_LineSegmenter_create_dictionary_with_options_v2_and_provider_mv1(const DataProvider* provider, const Locale* content_locale, LineBreakOptionsV2 options);
     45 
     46 LineBreakIteratorUtf8* icu4x_LineSegmenter_segment_utf8_mv1(const LineSegmenter* self, DiplomatStringView input);
     47 
     48 LineBreakIteratorUtf16* icu4x_LineSegmenter_segment_utf16_mv1(const LineSegmenter* self, DiplomatString16View input);
     49 
     50 LineBreakIteratorLatin1* icu4x_LineSegmenter_segment_latin1_mv1(const LineSegmenter* self, DiplomatU8View input);
     51 
     52 void icu4x_LineSegmenter_destroy_mv1(LineSegmenter* self);
     53 
     54 
     55 
     56 
     57 
     58 #endif // LineSegmenter_H