A view over a UTF‐8 string that iterates it as UTF‐32 code points.

Synopsis

Declared in <folly/UTF8String.h>

class UTF8StringPiece;

Type Aliases

Name

Description

iterator

Iterator that decodes the underlying UTF‐8 bytes into UTF‐32 code points.

size_type

Unsigned integer type used for sizes.

Member Functions

Name

Description

UTF8StringPiece [constructor]

Constructors

begin

Returns an iterator to the first code point.

cbegin

Returns a const iterator to the first code point.

cend

Returns a const iterator past the last code point.

empty

Reports whether the view contains no code points.

end

Returns an iterator past the last code point.

walk_size

Counts the number of code points by walking the range.

Created with MrDocs