Table of Contents

Method EnumerateCodePoints

Namespace
DocWright.Fonts
Assembly
DocWright.Fonts.dll

EnumerateCodePoints(string, int, int)

Splits a text range into Unicode code points, pairing surrogates.

public static List<int> EnumerateCodePoints(string text, int start, int end)

Parameters

text string

The text to walk.

start int

The inclusive start index; clamped into range.

end int

The exclusive end index; clamped into range.

Returns

List<int>

The code points in order.

Exceptions

ArgumentNullException

text is null.