THPDFUnicodeTextBoundaries

THPDFUnicodeTextBoundaries = array of Integer;

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

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

Boundary function · Unicode behavior