Black Lives Matter. Support the Equal Justice Initiative.

Package ascii

import "net/http/internal/ascii"

Overview ▾

func EqualFold

func EqualFold(s, t string) bool

EqualFold is strings.EqualFold, ASCII only. It reports whether s and t are equal, ASCII-case-insensitively.

func Is

func Is(s string) bool

Is returns whether s is ASCII.

func IsPrint

func IsPrint(s string) bool

IsPrint returns whether s is ASCII and printable according to

func ToLower

func ToLower(s string) (lower string, ok bool)

ToLower returns the lowercase version of s if s is ASCII and printable.