Search and commands

↑ ↓ to select · Enter to open · Esc to close

Type to search packages.

utf8

v1.15.5
github.com/bytedance/sonic/utf8

Documentation

pkg.go.dev ↗

Table of contents

↓ to select · Enter to jump· Shift+Enter for source

4 matches

Top ↑

Functions

CorrectWith

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

CorrectWith corrects the invalid utf8 byte with repl string.

Validate

func Validate(src []byte) bool

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

ValidateString

func ValidateString(src string) bool

ValidateString as Validate, but for string.

Dependency graph