RichTextKit v0.1

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);

Remarks

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

Parameters

int utf32Offset

The UTF-3232 offset to convert

Returns

int

The converted UTF-16 character offset