github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/net/http/internal/ascii/print.go (about) 1 // Copyright 2021 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package ascii 6 7 // EqualFold is [strings.EqualFold], ASCII only. It reports whether s and t 8 // are equal, ASCII-case-insensitively. 9 func EqualFold(s, t string) bool 10 11 // IsPrint returns whether s is ASCII and printable according to 12 // https://tools.ietf.org/html/rfc20#section-4.2. 13 func IsPrint(s string) bool 14 15 // Is returns whether s is ASCII. 16 func Is(s string) bool 17 18 // ToLower returns the lowercase version of s if s is ASCII and printable. 19 func ToLower(s string) (lower string, ok bool)