common

package
v0.9.8 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2015 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InvalidUtf8Index

func InvalidUtf8Index(b []byte) int

InvalidUtf8Index returns the offset of the first invalid UTF-8 character. Default is to return -1 for a wholly valid sequence.

func IsValidUtf8Btyes

func IsValidUtf8Btyes(b []byte) bool

IsValidUtf8Btyes checks for in valid UTF-8 characters

func IsValidUtf8String

func IsValidUtf8String(s string) bool

IsValidUtf8String checks for in valid UTF-8 characters

Types

This section is empty.

Jump to

Keyboard shortcuts

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