tor-browser

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

CollatorOptionsV1.d.hpp (1667B)


      1 #ifndef icu4x_CollatorOptionsV1_D_HPP
      2 #define icu4x_CollatorOptionsV1_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 #include "CollatorAlternateHandling.d.hpp"
     14 #include "CollatorCaseLevel.d.hpp"
     15 #include "CollatorMaxVariable.d.hpp"
     16 #include "CollatorStrength.d.hpp"
     17 
     18 namespace icu4x {
     19 class CollatorAlternateHandling;
     20 class CollatorCaseLevel;
     21 class CollatorMaxVariable;
     22 class CollatorStrength;
     23 }
     24 
     25 
     26 namespace icu4x {
     27 namespace capi {
     28    struct CollatorOptionsV1 {
     29      icu4x::capi::CollatorStrength_option strength;
     30      icu4x::capi::CollatorAlternateHandling_option alternate_handling;
     31      icu4x::capi::CollatorMaxVariable_option max_variable;
     32      icu4x::capi::CollatorCaseLevel_option case_level;
     33    };
     34 
     35    typedef struct CollatorOptionsV1_option {union { CollatorOptionsV1 ok; }; bool is_ok; } CollatorOptionsV1_option;
     36 } // namespace capi
     37 } // namespace
     38 
     39 
     40 namespace icu4x {
     41 /**
     42 * See the [Rust documentation for `CollatorOptions`](https://docs.rs/icu/latest/icu/collator/options/struct.CollatorOptions.html) for more information.
     43 */
     44 struct CollatorOptionsV1 {
     45  std::optional<icu4x::CollatorStrength> strength;
     46  std::optional<icu4x::CollatorAlternateHandling> alternate_handling;
     47  std::optional<icu4x::CollatorMaxVariable> max_variable;
     48  std::optional<icu4x::CollatorCaseLevel> case_level;
     49 
     50  inline icu4x::capi::CollatorOptionsV1 AsFFI() const;
     51  inline static icu4x::CollatorOptionsV1 FromFFI(icu4x::capi::CollatorOptionsV1 c_struct);
     52 };
     53 
     54 } // namespace
     55 #endif // icu4x_CollatorOptionsV1_D_HPP