THPDFUnicodeTextBoundaries

THPDFUnicodeTextBoundaries = array of Integer;

Ordered UTF-16 offsets into the original input, with zero marking where it starts; the final element is Length(Text)

For two neighbouring offsets, Copy(Text, First + 1, Last - First) selects one complete extended grapheme cluster

Boundary function · Unicode behaviour