tor-browser

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

CaseMapper.h (2190B)


      1 #ifndef CaseMapper_H
      2 #define CaseMapper_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 "CodePointSetBuilder.d.h"
     11 #include "DataError.d.h"
     12 #include "DataProvider.d.h"
     13 #include "Locale.d.h"
     14 #include "TitlecaseOptionsV1.d.h"
     15 
     16 #include "CaseMapper.d.h"
     17 
     18 
     19 
     20 
     21 
     22 
     23 CaseMapper* icu4x_CaseMapper_create_mv1(void);
     24 
     25 typedef struct icu4x_CaseMapper_create_with_provider_mv1_result {union {CaseMapper* ok; DataError err;}; bool is_ok;} icu4x_CaseMapper_create_with_provider_mv1_result;
     26 icu4x_CaseMapper_create_with_provider_mv1_result icu4x_CaseMapper_create_with_provider_mv1(const DataProvider* provider);
     27 
     28 void icu4x_CaseMapper_lowercase_mv1(const CaseMapper* self, DiplomatStringView s, const Locale* locale, DiplomatWrite* write);
     29 
     30 void icu4x_CaseMapper_uppercase_mv1(const CaseMapper* self, DiplomatStringView s, const Locale* locale, DiplomatWrite* write);
     31 
     32 void icu4x_CaseMapper_lowercase_with_compiled_data_mv1(DiplomatStringView s, const Locale* locale, DiplomatWrite* write);
     33 
     34 void icu4x_CaseMapper_uppercase_with_compiled_data_mv1(DiplomatStringView s, const Locale* locale, DiplomatWrite* write);
     35 
     36 void icu4x_CaseMapper_titlecase_segment_with_only_case_data_v1_mv1(const CaseMapper* self, DiplomatStringView s, const Locale* locale, TitlecaseOptionsV1 options, DiplomatWrite* write);
     37 
     38 void icu4x_CaseMapper_fold_mv1(const CaseMapper* self, DiplomatStringView s, DiplomatWrite* write);
     39 
     40 void icu4x_CaseMapper_fold_turkic_mv1(const CaseMapper* self, DiplomatStringView s, DiplomatWrite* write);
     41 
     42 void icu4x_CaseMapper_add_case_closure_to_mv1(const CaseMapper* self, char32_t c, CodePointSetBuilder* builder);
     43 
     44 char32_t icu4x_CaseMapper_simple_lowercase_mv1(const CaseMapper* self, char32_t ch);
     45 
     46 char32_t icu4x_CaseMapper_simple_uppercase_mv1(const CaseMapper* self, char32_t ch);
     47 
     48 char32_t icu4x_CaseMapper_simple_titlecase_mv1(const CaseMapper* self, char32_t ch);
     49 
     50 char32_t icu4x_CaseMapper_simple_fold_mv1(const CaseMapper* self, char32_t ch);
     51 
     52 char32_t icu4x_CaseMapper_simple_fold_turkic_mv1(const CaseMapper* self, char32_t ch);
     53 
     54 void icu4x_CaseMapper_destroy_mv1(CaseMapper* self);
     55 
     56 
     57 
     58 
     59 
     60 #endif // CaseMapper_H