tor-browser

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

CodePointRangeIteratorResult.hpp (1029B)


      1 #ifndef icu4x_CodePointRangeIteratorResult_HPP
      2 #define icu4x_CodePointRangeIteratorResult_HPP
      3 
      4 #include "CodePointRangeIteratorResult.d.hpp"
      5 
      6 #include <stdio.h>
      7 #include <stdint.h>
      8 #include <stddef.h>
      9 #include <stdbool.h>
     10 #include <memory>
     11 #include <functional>
     12 #include <optional>
     13 #include <cstdlib>
     14 #include "../diplomat_runtime.hpp"
     15 
     16 
     17 namespace icu4x {
     18 namespace capi {
     19    extern "C" {
     20 
     21    } // extern "C"
     22 } // namespace capi
     23 } // namespace
     24 
     25 
     26 inline icu4x::capi::CodePointRangeIteratorResult icu4x::CodePointRangeIteratorResult::AsFFI() const {
     27  return icu4x::capi::CodePointRangeIteratorResult {
     28    /* .start = */ start,
     29    /* .end = */ end,
     30    /* .done = */ done,
     31  };
     32 }
     33 
     34 inline icu4x::CodePointRangeIteratorResult icu4x::CodePointRangeIteratorResult::FromFFI(icu4x::capi::CodePointRangeIteratorResult c_struct) {
     35  return icu4x::CodePointRangeIteratorResult {
     36    /* .start = */ c_struct.start,
     37    /* .end = */ c_struct.end,
     38    /* .done = */ c_struct.done,
     39  };
     40 }
     41 
     42 
     43 #endif // icu4x_CodePointRangeIteratorResult_HPP