Documentation ¶
Overview ¶
Package utf provides utilities for working with UTF strings, notably including UTF16.
Index ¶
- Variables
- func StringToUTF16ByteSlice(utf8String string, byteOrder binary.ByteOrder) (u8Buf []byte)
- func StringToUTF8ByteSlice(utf8String string) (u8Buf []byte)
- func UTF16ByteSliceToString(u8Buf []byte, byteOrder binary.ByteOrder) (utf8String string, err error)
- func UTF8ByteSliceToString(u8Buf []byte) (utf8String string, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var BigEndian binary.ByteOrder = binary.BigEndian
View Source
var LittleEndian binary.ByteOrder = binary.LittleEndian
Functions ¶
func StringToUTF16ByteSlice ¶
func StringToUTF8ByteSlice ¶
func UTF16ByteSliceToString ¶
func UTF8ByteSliceToString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.