asCodePointSequence

Returns a CodePointSequence iterating through Unicode code points in this string.

The sequence allows iteration over the code points from the beginning to the end of the string.

Since Kotlin

2.5

See also


Returns a CodePointSequence iterating through Unicode code points in this char sequence.

The sequence allows iteration over the code points from the beginning to the end of the specified range of this char array.

Since Kotlin

2.5

See also


Returns a CodePointSequence iterating through Unicode code points in the specified range of this char array.

The sequence allows iteration over the code points from the beginning to the end of the specified range.

The range of array indices wherein the iteration is constrained is defined by the startIndex (inclusive) and endIndex (exclusive) parameters. By default, the entire char array is iterated.

Since Kotlin

2.5

Parameters

startIndex

The beginning of the array range, inclusive. Defaults to 0.

endIndex

The ending of the array range, exclusive. Defaults to the size of the char array.

See also

Throws

If startIndex or endIndex is out of the valid range 0..size or endIndex < startIndex.