str

package
v0.0.0-...-c88107b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UTF16ToUTF8Pos

func UTF16ToUTF8Pos(s string, i int) int

UTF16ToUTF8Pos converts UTF-16 position (as reported by JavaScript calls, e.g. selectionStart / selectionEnd) to a UTF-8 position in the string

func UTF8ToUTF16Pos

func UTF8ToUTF16Pos(s string, i int) int

UTF8ToUTF16Pos converts UTF-8 position in the string to a UTF16 position suitable for e.g. caret positioning

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL