src
Public Types | Static Public Member Functions | Static Public Attributes | List of all members
re2c::utf16 Class Reference

#include <utf16.h>

Public Types

typedef uint32_t rune
 

Static Public Member Functions

static uint32_t lead_surr (rune r)
 
static uint32_t trail_surr (rune r)
 

Static Public Attributes

static const uint32_t MAX_1WORD_RUNE = 0xFFFFu
 
static const uint32_t MIN_LEAD_SURR = 0xD800u
 
static const uint32_t MIN_TRAIL_SURR = 0xDC00u
 
static const uint32_t MAX_TRAIL_SURR = 0xDFFFu
 

Detailed Description

Definition at line 8 of file utf16.h.

Member Typedef Documentation

typedef uint32_t re2c::utf16::rune

Definition at line 11 of file utf16.h.

Member Function Documentation

uint32_t re2c::utf16::lead_surr ( rune  r)
inlinestatic

Definition at line 25 of file utf16.h.

26 {
27  return ((r - 0x10000u) / 0x400u) + MIN_LEAD_SURR;
28 }
static const uint32_t MIN_LEAD_SURR
Definition: utf16.h:14

Here is the caller graph for this function:

uint32_t re2c::utf16::trail_surr ( rune  r)
inlinestatic

Definition at line 30 of file utf16.h.

31 {
32  return ((r - 0x10000u) % 0x400u) + MIN_TRAIL_SURR;
33 }
static const uint32_t MIN_TRAIL_SURR
Definition: utf16.h:15

Here is the caller graph for this function:

Member Data Documentation

const uint32_t re2c::utf16::MAX_1WORD_RUNE = 0xFFFFu
static

Definition at line 13 of file utf16.h.

const uint32_t re2c::utf16::MAX_TRAIL_SURR = 0xDFFFu
static

Definition at line 16 of file utf16.h.

const uint32_t re2c::utf16::MIN_LEAD_SURR = 0xD800u
static

Definition at line 14 of file utf16.h.

const uint32_t re2c::utf16::MIN_TRAIL_SURR = 0xDC00u
static

Definition at line 15 of file utf16.h.


The documentation for this class was generated from the following files: