RichTextKit v0.4

Utf32Buffer.Utf32OffsetToUtf16Offset Method

Assembly: Topten.RichTextKit.dll
Namespace: Topten.RichTextKit.Utils
Declaring Type: Utf32Buffer

Convers an offset into this buffer to a UTF-16 offset in the originally added string.

public int Utf32OffsetToUtf16Offset(int utf32Offset);


This function assumes the was text added to the buffer as UTF-16 and hasn't been modified in any way since.


int utf32Offset

The UTF-3232 offset to convert



The converted UTF-16 character offset

Subscribe for more like this. No spam, just fun tech stuff :)

Or, find me on Twitter: @toptensoftware.