goplayspace: github.com/iafan/goplayspace/client/js/str Index | Files

package str

import "github.com/iafan/goplayspace/client/js/str"

Index

Package Files

str.go

func UTF16ToUTF8Pos Uses

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 Uses

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

Package str imports 1 packages (graph) and is imported by 1 packages. Updated 2017-08-28. Refresh now. Tools for package owners.