MCPcopy Create free account
hub / github.com/foxcpp/maddy / IsASCII

Function IsASCII

framework/address/norm.go:117–124  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

115}
116
117func IsASCII(s string) bool {
118 for _, ch := range s {
119 if ch > utf8.RuneSelf {
120 return false
121 }
122 }
123 return true
124}
125
126func FQDNDomain(addr string) string {
127 if strings.HasSuffix(addr, ".") {

Callers 4

rcptMethod · 0.92
RcptMethod · 0.92
prepareMailFromFunction · 0.92
TestIsASCIIFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestIsASCIIFunction · 0.68