Search results

There are no results.

std.utf8

Methods for working with UTF-8 scalars and code point.

Constants

MAX_CODEPOINT

The maximum value of a Unicode code point

Methods

codepoint_from_surrogates

Returns a Unicode code point from a pair of Unicode surrogates.

codepoint_size

Returns the number of bytes of a code point.

encode_scalar

Encodes a Unicode scalar value into a series of bytes, appending these to the given ByteArray.

surrogate?

Returns true if the given Int falls in the range of UTF-16 surrogate pairs.

valid_scalar?

Returns true if the given Int is a valid Unicode scalar value.