ICU4X
International Components for Unicode
Loading...
Searching...
No Matches
icu4x::diplomat Namespace Reference

Namespaces

namespace  fn_trait_helpers
 

Classes

struct  as_ffi
 
struct  as_ffi< std::unique_ptr< T > >
 
struct  as_ffi< T, std::void_t< decltype(std::declval< std::remove_pointer_t< T > >().AsFFI())> >
 
class  basic_string_view_for_slice
 
struct  diplomat_c_span_convert
 
struct  Err
 
struct  fn_traits
 
struct  fn_traits< std::function< Ret(Args...)> >
 
struct  has_next
 
struct  has_next< T, std::void_t< decltype(std::declval< T >().next())> >
 
struct  inner
 
struct  inner< std::optional< T > >
 
struct  inner< std::unique_ptr< T > >
 
struct  inner< T * >
 
struct  is_optional
 
struct  is_optional< std::optional< T > >
 
struct  is_unique_ptr
 
struct  is_unique_ptr< std::unique_ptr< T > >
 
struct  next_to_iter_helper
 Helper template enabling native iteration over unique ptrs to objects which implement next() More...
 
struct  Ok
 
class  result
 
class  span
 
class  Utf8Error
 
struct  WriteTrait
 
struct  WriteTrait< std::string >
 

Typedefs

using string_view_for_slice = basic_string_view_for_slice< char >
 
using u16string_view_for_slice = basic_string_view_for_slice< char16_t >
 
using string_view_span = span< const string_view_for_slice >
 
using u16string_view_span = span< const u16string_view_for_slice >
 
template<typename T >
using as_ffi_t = typename as_ffi< T >::type
 
template<typename T >
using replace_string_view_t = std::conditional_t< std::is_same_v< T, std::string_view >, capi::DiplomatStringView, T >
 
template<typename T >
using diplomat_c_span_convert_t = typename diplomat_c_span_convert< T >::type
 
template<typename T >
using replace_fn_t = diplomat_c_span_convert_t< replace_string_view_t< as_ffi_t< T > > >
 Replace the argument types from the std::function with the argument types for th function pointer.
 

Functions

bool _grow_impl (capi::DiplomatWrite *w, uintptr_t requested)
 
template<class T >
 fn_traits (T) -> fn_traits< T >
 
template<typename T , typename U = typename inner<T>::type>
const U get_inner_if_present (T v)
 

Variables

constexpr size_t dynamic_extent = std::numeric_limits<std::size_t>::max()
 
template<typename T >
constexpr bool is_unique_ptr_v = is_unique_ptr<T>::value
 
template<typename T >
constexpr bool is_optional_v = is_optional<T>::value
 
template<typename T >
constexpr bool has_next_v = has_next<T>::value
 

Typedef Documentation

◆ as_ffi_t

◆ diplomat_c_span_convert_t

◆ replace_fn_t

Replace the argument types from the std::function with the argument types for th function pointer.

◆ replace_string_view_t

template<typename T >
using icu4x::diplomat::replace_string_view_t = typedef std::conditional_t<std::is_same_v<T, std::string_view>, capi::DiplomatStringView, T>

◆ string_view_for_slice

◆ string_view_span

◆ u16string_view_for_slice

◆ u16string_view_span

Function Documentation

◆ _grow_impl()

bool icu4x::diplomat::_grow_impl ( capi::DiplomatWrite *  w,
uintptr_t  requested 
)
inline

◆ fn_traits()

template<class T >
icu4x::diplomat::fn_traits ( ) -> fn_traits< T >

◆ get_inner_if_present()

template<typename T , typename U = typename inner<T>::type>
const U icu4x::diplomat::get_inner_if_present ( v)
inline

Variable Documentation

◆ dynamic_extent

constexpr size_t icu4x::diplomat::dynamic_extent = std::numeric_limits<std::size_t>::max()
constexpr

◆ has_next_v

template<typename T >
constexpr bool icu4x::diplomat::has_next_v = has_next<T>::value
constexpr

◆ is_optional_v

template<typename T >
constexpr bool icu4x::diplomat::is_optional_v = is_optional<T>::value
constexpr

◆ is_unique_ptr_v

template<typename T >
constexpr bool icu4x::diplomat::is_unique_ptr_v = is_unique_ptr<T>::value
constexpr