- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for isIdentASCII (0.2 sec)
-
src/cmd/vendor/golang.org/x/build/relnote/links.go
if c := s[n]; c < utf8.RuneSelf { if isIdentASCII(c) && (n > 0 || c < '0' || c > '9') { n++ continue } break } r, nr := utf8.DecodeRuneInString(s[n:]) if unicode.IsLetter(r) { n += nr continue } break } return s[:n], n > 0 } // isIdentASCII reports whether c is an ASCII identifier byte. func isIdentASCII(c byte) bool {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 8.2K bytes - Viewed (0) -
src/go/doc/comment/print.go
var p textPrinter p.oneLongLine(&out, h.Text) s := strings.TrimSpace(out.String()) if s == "" { return "" } out.Reset() out.WriteString("hdr-") for _, r := range s { if r < 0x80 && isIdentASCII(byte(r)) { out.WriteByte(byte(r)) } else { out.WriteByte('_') } } return out.String() } type commentPrinter struct { *Printer }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:03 UTC 2023 - 7.6K bytes - Viewed (0) -
src/go/doc/comment/parse.go
for n < len(s) { if c := s[n]; c < utf8.RuneSelf { if isIdentASCII(c) && (n > 0 || c < '0' || c > '9') { n++ continue } break } r, nr := utf8.DecodeRuneInString(s[n:]) if unicode.IsLetter(r) { n += nr continue } break } return s[:n], n > 0 } // isIdentASCII reports whether c is an ASCII identifier byte.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:03 UTC 2023 - 33.5K bytes - Viewed (0)