goplayspace: Index | Files

package str

import ""


Package Files


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.