public static FromByteOffset ( int offset ) : |
||
offset | int | The zero-based byte offset to find. |
return |
If the offset happens to land in the middle of a multi-byte character, this function will return a text location pointing to the character that begins just prior to the offset.
If the offset is before the start of the document (a negative number), then a location pointing to the start of the document will be returned.
If the offset is after the end of the document, then a location pointing to the end of the document will be returned.
public static FromByteOffset ( int offset ) : |
||
offset | int | The zero-based byte offset to find. |
return |