u5e
UnicodeTextC++Library
Static Public Member Functions | List of all members
u5e::utf8_util Class Reference

Basic operations necessary for implementing utf8. More...

#include <u5e/utf8_util.hpp>

Static Public Member Functions

static bool is_7bit_character (const char octet)
 
static bool is_codepoint_continuation (const char octet)
 
static bool is_codepoint_start (const char octet)
 
static int codepoint_size (const char first_octet)
 
static int encoded_size (int value)
 

Detailed Description

Basic operations necessary for implementing utf8.

Definition at line 11 of file utf8_util.hpp.

Member Function Documentation

static int u5e::utf8_util::codepoint_size ( const char  first_octet)
inlinestatic

Find the codepoint size given the first utf8 octet

Definition at line 50 of file utf8_util.hpp.

static int u5e::utf8_util::encoded_size ( int  value)
inlinestatic

How many octets will this codepoint take

Definition at line 60 of file utf8_util.hpp.

static bool u5e::utf8_util::is_7bit_character ( const char  octet)
inlinestatic

Check whether or not this is a 7bit character

Definition at line 17 of file utf8_util.hpp.

static bool u5e::utf8_util::is_codepoint_continuation ( const char  octet)
inlinestatic

Check whether or not this is octet is a codepoint continuation

Definition at line 28 of file utf8_util.hpp.

static bool u5e::utf8_util::is_codepoint_start ( const char  octet)
inlinestatic

Check whether or not this is a first octet in a sequence

Definition at line 39 of file utf8_util.hpp.


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