- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 116 for rune1 (0.06 sec)
-
src/crypto/tls/key_schedule_test.go
"encoding/hex" "hash" "strings" "testing" "unicode" ) // This file contains tests derived from draft-ietf-tls-tls13-vectors-07. func parseVector(v string) []byte { v = strings.Map(func(c rune) rune { if unicode.IsSpace(c) { return -1 } return c }, v) parts := strings.Split(v, ":") v = parts[len(parts)-1] res, err := hex.DecodeString(v) if err != nil { panic(err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 14:56:25 UTC 2024 - 13.2K bytes - Viewed (0) -
operator/pkg/apis/istio/v1alpha1/validation/validation.go
func firstCharsToLower(s string) string { // Use a closure here to remember state. // Hackish but effective. Depends on Map scanning in order and calling // the closure once per rune. prev := '.' return strings.Map( func(r rune) rune { if prev == '.' { prev = r return unicode.ToLower(r) } prev = r return r }, s) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 16 20:02:28 UTC 2024 - 14.9K 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) -
utils/utils.go
return string(strconv.AppendInt(append([]byte(frame.File), ':'), int64(frame.Line), 10)) } } return "" } func IsValidDBNameChar(c rune) bool { return !unicode.IsLetter(c) && !unicode.IsNumber(c) && c != '.' && c != '*' && c != '_' && c != '$' && c != '@' } // CheckTruth check string true or not func CheckTruth(vals ...string) bool {
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Mon Apr 22 06:43:02 UTC 2024 - 3.8K bytes - Viewed (0) -
doc/go_spec.html
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 21:07:21 UTC 2024 - 281.5K bytes - Viewed (1) -
src/cmd/go/internal/envcmd/env.go
} } } } func hasNonGraphic(s string) bool { for _, c := range []byte(s) { if c == '\r' || c == '\n' || (!unicode.IsGraphic(rune(c)) && !unicode.IsSpace(rune(c))) { return true } } return false } func shellQuote(s string) string { var b bytes.Buffer b.WriteByte('\'') for _, x := range []byte(s) { if x == '\'' {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 17:13:51 UTC 2024 - 19.6K bytes - Viewed (0) -
cmd/kubeadm/app/cmd/config_test.go
) func TestNewCmdConfigImagesList(t *testing.T) { var output bytes.Buffer mockK8sVersion := dummyKubernetesVersionStr images := newCmdConfigImagesList(&output, &mockK8sVersion) if err := images.RunE(nil, nil); err != nil { t.Fatalf("Error from running the images command: %v", err) } actual := strings.Split(output.String(), "\n") if len(actual) != defaultNumberOfImages {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 06:58:01 UTC 2024 - 13K bytes - Viewed (0) -
src/strings/builder.go
b.copyCheck() b.buf = append(b.buf, c) return nil } // WriteRune appends the UTF-8 encoding of Unicode code point r to b's buffer. // It returns the length of r and a nil error. func (b *Builder) WriteRune(r rune) (int, error) { b.copyCheck() n := len(b.buf) b.buf = utf8.AppendRune(b.buf, r) return len(b.buf) - n, nil } // WriteString appends the contents of s to b's buffer.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 17 21:09:59 UTC 2024 - 3.2K bytes - Viewed (0) -
src/go/internal/gcimporter/support.go
types.Typ[types.Float64], types.Typ[types.Complex64], types.Typ[types.Complex128], types.Typ[types.String], // basic type aliases types.Universe.Lookup("byte").Type(), types.Universe.Lookup("rune").Type(), // error types.Universe.Lookup("error").Type(), // untyped types types.Typ[types.UntypedBool], types.Typ[types.UntypedInt], types.Typ[types.UntypedRune],
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 20:08:23 UTC 2024 - 4.1K bytes - Viewed (0) -
cmd/kubeadm/app/cmd/kubeconfig.go
) // Creates the UX Command cmd := &cobra.Command{ Use: "user", Short: "Output a kubeconfig file for an additional user", Long: userKubeconfigLongDesc, Example: userKubeconfigExample, RunE: func(cmd *cobra.Command, args []string) error { // This call returns the ready-to-use configuration based on the defaults populated by flags
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 01 16:01:49 UTC 2024 - 4.6K bytes - Viewed (0)