Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::locale::utf::utf_traits< CharType, 2 > Struct Template Reference

#include <utf.hpp>

Public Types

typedef CharType char_type
 

Static Public Member Functions

static bool is_first_surrogate (uint16_t x)
 
static bool is_second_surrogate (uint16_t x)
 
static code_point combine_surrogate (uint16_t w1, uint16_t w2)
 
static int trail_length (char_type c)
 
static bool is_trail (char_type c)
 Returns true if c is trail code unit, always false for UTF-32. More...
 
static bool is_lead (char_type c)
 Returns true if c is lead code unit, always true of UTF-32. More...
 
template<typename It >
static code_point decode (It &current, It last)
 
template<typename It >
static code_point decode_valid (It &current)
 
static int width (code_point u)
 
template<typename It >
static It encode (code_point u, It out)
 

Static Public Attributes

static const int max_width = 2
 

Member Typedef Documentation

template<typename CharType >
typedef CharType boost::locale::utf::utf_traits< CharType, 2 >::char_type

Member Function Documentation

template<typename CharType >
static code_point boost::locale::utf::utf_traits< CharType, 2 >::combine_surrogate ( uint16_t  w1,
uint16_t  w2 
)
inlinestatic
template<typename CharType >
template<typename It >
static code_point boost::locale::utf::utf_traits< CharType, 2 >::decode ( It &  current,
It  last 
)
inlinestatic
template<typename CharType >
template<typename It >
static code_point boost::locale::utf::utf_traits< CharType, 2 >::decode_valid ( It &  current)
inlinestatic
template<typename CharType >
template<typename It >
static It boost::locale::utf::utf_traits< CharType, 2 >::encode ( code_point  u,
It  out 
)
inlinestatic

References boost::out.

template<typename CharType >
static bool boost::locale::utf::utf_traits< CharType, 2 >::is_first_surrogate ( uint16_t  x)
inlinestatic
template<typename CharType >
static bool boost::locale::utf::utf_traits< CharType, 2 >::is_lead ( char_type  c)
inlinestatic

Returns true if c is lead code unit, always true of UTF-32.

template<typename CharType >
static bool boost::locale::utf::utf_traits< CharType, 2 >::is_second_surrogate ( uint16_t  x)
inlinestatic
template<typename CharType >
static bool boost::locale::utf::utf_traits< CharType, 2 >::is_trail ( char_type  c)
inlinestatic

Returns true if c is trail code unit, always false for UTF-32.

template<typename CharType >
static int boost::locale::utf::utf_traits< CharType, 2 >::trail_length ( char_type  c)
inlinestatic
template<typename CharType >
static int boost::locale::utf::utf_traits< CharType, 2 >::width ( code_point  u)
inlinestatic

Member Data Documentation

template<typename CharType >
const int boost::locale::utf::utf_traits< CharType, 2 >::max_width = 2
static

The documentation for this struct was generated from the following file: