tor-browser

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

Decomposed.d.hpp (1110B)


      1 #ifndef icu4x_Decomposed_D_HPP
      2 #define icu4x_Decomposed_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 
     15 namespace icu4x {
     16 namespace capi {
     17    struct Decomposed {
     18      char32_t first;
     19      char32_t second;
     20    };
     21 
     22    typedef struct Decomposed_option {union { Decomposed ok; }; bool is_ok; } Decomposed_option;
     23 } // namespace capi
     24 } // namespace
     25 
     26 
     27 namespace icu4x {
     28 /**
     29 * The outcome of non-recursive canonical decomposition of a character.
     30 * `second` will be NUL when the decomposition expands to a single character
     31 * (which may or may not be the original one)
     32 *
     33 * See the [Rust documentation for `Decomposed`](https://docs.rs/icu/latest/icu/normalizer/properties/enum.Decomposed.html) for more information.
     34 */
     35 struct Decomposed {
     36  char32_t first;
     37  char32_t second;
     38 
     39  inline icu4x::capi::Decomposed AsFFI() const;
     40  inline static icu4x::Decomposed FromFFI(icu4x::capi::Decomposed c_struct);
     41 };
     42 
     43 } // namespace
     44 #endif // icu4x_Decomposed_D_HPP