Documentation ¶
Rendered for windows/amd64
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Decode ¶ added in v1.8.0
Decode decodes the UTF16-encoded string to UTF-8 string. This function exhibits much better performance than the standard library counterpart. All credits go to: https://gist.github.com/skeeto/09f1410183d246f9b18cba95c4e602f0
func PtrToString ¶
PtrToString is like UTF16ToString, but takes *uint16 as a parameter instead of []uint16.
func StringToUTF16Ptr ¶
StringToUTF16Ptr returns the pointer to UTF-8 encoded string. It will silently return an invalid pointer if `s` argument contains a NUL byte at any location.
Types ¶
type UnicodeString ¶
UnicodeString stores the size and the memory buffer of the unicode string.
func (UnicodeString) String ¶
func (u UnicodeString) String() string
String returns the native string from the Unicode stream.
Click to show internal directories.
Click to hide internal directories.