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

Static Public Member Functions

static bool isByteOrderMark (const utf16_t *str)
 
static bool isBigEndian (const utf16_t *str)
 
static size_t getLength (const utf16_t *string, bool bigendian)
 
static size_t getSize (const utf16_t *string, bool bigendian)
 

Detailed Description

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

Member Function Documentation

◆ getLength()

static size_t utf16charstring::getLength ( const utf16_t *  string,
bool  bigendian 
)
static

Returns the number of characters in "string".

◆ getSize()

static size_t utf16charstring::getSize ( const utf16_t *  string,
bool  bigendian 
)
static

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

◆ isBigEndian()

static bool utf16charstring::isBigEndian ( const utf16_t *  str)
static

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

◆ isByteOrderMark()

static bool utf16charstring::isByteOrderMark ( const utf16_t *  str)
static

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