- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for importPathOK (0.1 sec)
-
src/cmd/vendor/golang.org/x/mod/module/module.go
if r < utf8.RuneSelf { return r == '-' || r == '.' || r == '_' || r == '~' || '0' <= r && r <= '9' || 'A' <= r && r <= 'Z' || 'a' <= r && r <= 'z' } return false } // importPathOK reports whether r can appear in a package import path element. // // Import paths are intermediate between module paths and file paths: we allow // disallow characters that would be confusing or ambiguous as arguments to
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 09 20:17:07 UTC 2024 - 26.9K bytes - Viewed (0) -
src/go/doc/comment/parse.go
if elem == "" || elem[0] == '.' || elem[len(elem)-1] == '.' { return false } for i := 0; i < len(elem); i++ { if !importPathOK(elem[i]) { return false } } return true } func importPathOK(c byte) bool { // mask is a 128-bit bitmap with 1s for allowed bytes, // so that the byte c can be tested with a shift and an and.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:03 UTC 2023 - 33.5K bytes - Viewed (0)