- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 229 for isLetter (0.24 sec)
-
staging/src/k8s.io/apiserver/pkg/endpoints/openapi/openapi.go
func ToValidOperationID(s string, capitalizeFirstLetter bool) string { var buffer bytes.Buffer capitalize := capitalizeFirstLetter for i, r := range s { if unicode.IsLetter(r) || r == '_' || (i != 0 && unicode.IsDigit(r)) { if capitalize { buffer.WriteRune(unicode.ToUpper(r)) capitalize = false } else { buffer.WriteRune(r) } } else { capitalize = true
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jun 09 18:11:41 UTC 2022 - 5.5K bytes - Viewed (0) -
src/go/build/constraint/expr.go
} p.pos = p.i p.i += 2 p.tok = p.s[p.pos:p.i] return } tag := p.s[p.i:] for i, c := range tag { if !unicode.IsLetter(c) && !unicode.IsDigit(c) && c != '_' && c != '.' { tag = tag[:i] break } } if tag == "" { c, _ := utf8.DecodeRuneInString(p.s[p.i:])
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:03 UTC 2023 - 14.2K bytes - Viewed (0) -
src/go/internal/gccgoimporter/testdata/unicode.gox
var Inscriptional_Parthian <type 1>; func Is (rangeTab <type 1>, r <type -21>) <type -15>; func IsControl (r <type -21>) <type -15>; func IsDigit (r <type -21>) <type -15>; func IsGraphic (r <type -21>) <type -15>; func IsLetter (r <type -21>) <type -15>; func IsLower (r <type -21>) <type -15>; func IsMark (r <type -21>) <type -15>; func IsNumber (r <type -21>) <type -15>; func IsOneOf (ranges <type 23 [] <type 24 *<type 2>>>, r <type -21>) <type -15>;
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 30 21:33:51 UTC 2021 - 7.3K bytes - Viewed (0) -
pkg/config/security/security.go
"P-521", "P-384", "X25519", "X25519Kyber768Draft00", ) func IsValidCipherSuite(cs string) bool { if cs == "" || cs == "ALL" { return true } if !unicode.IsNumber(rune(cs[0])) && !unicode.IsLetter(rune(cs[0])) { // Not all of these are correct, but this is needed to support advanced cases like - and + operators // without needing to parse the full expression return true }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jun 07 04:43:34 UTC 2024 - 9.4K bytes - Viewed (0) -
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/cmd/vendor/golang.org/x/tools/go/analysis/passes/buildtag/buildtag.go
check.pass.Reportf(pos, "invalid double negative in build constraint: %s", arg) check.crossCheck = false continue } elem = strings.TrimPrefix(elem, "!") for _, c := range elem { if !unicode.IsLetter(c) && !unicode.IsDigit(c) && c != '_' && c != '.' { check.pass.Reportf(pos, "invalid non-alphanumeric build constraint: %s", arg) check.crossCheck = false break } } } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 9.3K bytes - Viewed (0) -
src/go/doc/comment/parse.go
line = strings.TrimSpace(line) // a heading must start with an uppercase letter r, _ := utf8.DecodeRuneInString(line) if !unicode.IsLetter(r) || !unicode.IsUpper(r) { return false } // it must end in a letter or digit: r, _ = utf8.DecodeLastRuneInString(line) if !unicode.IsLetter(r) && !unicode.IsDigit(r) { return false } // exclude lines with illegal characters. we allow "(),"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:03 UTC 2023 - 33.5K bytes - Viewed (0) -
src/text/template/funcs.go
func goodName(name string) bool { if name == "" { return false } for i, r := range name { switch { case r == '_': case i == 0 && !unicode.IsLetter(r): return false case !unicode.IsLetter(r) && !unicode.IsDigit(r): return false } } return true } // findFunction looks for a function in the template, and global map.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 22:23:55 UTC 2024 - 20.9K bytes - Viewed (0) -
src/cmd/vendor/rsc.io/markdown/link.go
// characters, space, <, and >. If the URI includes these characters, // they must be percent-encoded (e.g. %20 for a space). j := i if j+1 >= len(s) || s[j] != '<' || !isLetter(s[j+1]) { return nil, 0, false } j++ for j < len(s) && isScheme(s[j]) && j-(i+1) <= 32 { j++ } if j-(i+1) < 2 || j-(i+1) > 32 || j >= len(s) || s[j] != ':' { return nil, 0, false }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 24 13:01:26 UTC 2024 - 20.7K bytes - Viewed (0) -
src/cmd/go/internal/imports/build.go
func matchTag(name string, tags map[string]bool, prefer bool) bool { // Tags must be letters, digits, underscores or dots. // Unlike in Go identifiers, all digits are fine (e.g., "386"). for _, c := range name { if !unicode.IsLetter(c) && !unicode.IsDigit(c) && c != '_' && c != '.' { return false } } if tags["*"] && name != "" && name != "ignore" { // Special case for gathering all possible imports:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 30 18:50:57 UTC 2023 - 10.4K bytes - Viewed (0)