utf8

package
v1.11.1 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CorrectWith

func CorrectWith(dst []byte, src []byte, repl string) []byte

CorrectWith corrects the invalid utf8 byte with repl string.

func Validate

func Validate(src []byte) bool

Validate is a simd-accelereated drop-in replacement for the standard library's utf8.Valid.

func ValidateString

func ValidateString(src string) bool

ValidateString as Validate, but for string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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