utf8

package
v1.12.3 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: Apache-2.0 Imports: 4 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