Rudiments
Static Public Member Functions | List of all members
utf8charstring Class Reference

Static Public Member Functions

static bool isByteOrderMark (const utf8_t *str)
 
static size_t getLength (const utf8_t *string)
 
static size_t getSize (const utf8_t *string)
 

Detailed Description

The utf8charstring class provides static methods for manipulating UCS-2 encoded character strings.

Member Function Documentation

◆ getLength()

static size_t utf8charstring::getLength ( const utf8_t *  string)
static

Returns the number of characters in "string".

◆ getSize()

static size_t utf8charstring::getSize ( const utf8_t *  string)
static

Returns the number of bytes in "string", including the null terminator.

◆ isByteOrderMark()

static bool utf8charstring::isByteOrderMark ( const utf8_t *  str)
static

Returns true if the current character in "str" is the byte order mark and false otherwise.