This simply constrained (value‐semantic) attribute class characterizes a Unicode code point represented by a set of integral values. This class is private to this package and should not be used by clients.

Synopsis

Declared in <bslfmt_unicodecodepoint.h>

class UnicodeCodePoint;

Enums

Name

Description

UtfEncoding

UTF encodings supported by UnicodeCodePoint.

Member Functions

Name

Description

UnicodeCodePoint [constructor]

Create an uninitialized Unicode code point object

codePointValue

Return the value of this code point.

codePointWidth

Return the width of this code point.

extract

Extract a code point from no more than the specified maxBytes of the byte stream at the specified bytes location in the specified encoding. Behavior is undefined if the input bytes are not in the specified encoding. Unicode Byte Order Markers are not supported and behavior is undefined if the input data contains an embedded BOM. Endianness is assumed to be that of the type pointed to by bytes.

isValid

Return true if this object was successfully extracted and contains valid code point data, and false otherwise.

numSourceBytes

Return the number of bytes occupied by this code point.

reset

Reset this object to the default state.

Created with MrDocs