- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for TrimLeft (0.69 sec)
-
src/bytes/bytes_test.go
{"Trim", []byte{'a', 'b'}, "ab", nil}, {"Trim", []byte("☺"), "☺", nil}, {"TrimLeft", nil, "", nil}, {"TrimLeft", []byte{}, "", nil}, {"TrimLeft", []byte{'a'}, "a", nil}, {"TrimLeft", []byte{'a', 'a'}, "a", nil}, {"TrimLeft", []byte{'a'}, "ab", nil}, {"TrimLeft", []byte{'a', 'b'}, "ab", nil}, {"TrimLeft", []byte("☺"), "☺", nil}, {"TrimRight", nil, "", nil}, {"TrimRight", []byte{}, "", []byte{}},Registered: Tue Dec 30 11:13:12 UTC 2025 - Last Modified: Tue Dec 23 23:54:14 UTC 2025 - 62.9K bytes - Viewed (0) -
src/cmd/asm/internal/asm/endtoend_test.go
} func isHexes(s string) bool { if s == "" { return false } if s == "empty" { return true } for _, f := range strings.Split(s, " or ") { if f == "" || len(f)%2 != 0 || strings.TrimLeft(f, "0123456789abcdef") != "" { return false } } return true } // It would be nice if the error messages always began with // the standard file:line: prefix,
Registered: Tue Dec 30 11:13:12 UTC 2025 - Last Modified: Tue Dec 23 18:45:48 UTC 2025 - 12.5K bytes - Viewed (0) -
lib/fips140/v1.1.0-rc1.zip
_ := bigmod.NewModulus(addOne(decodeHex(t, B))) b, _ := bigmod.NewNat().SetBytes(decodeHex(t, B), q) gcd, err := bigmod.NewNat().GCDVarTime(a, b) // GCD doesn't work if a and b are both even, but LCM handles it. if err == nil { if got := strings.TrimLeft(hex.EncodeToString(gcd.Bytes(p)), "0"); got != GCD { t.Fatalf("unexpected GCD: got %s, want %s", got, GCD) } } lcm, err := totient(p, q) if oddDivisorLargerThan(decodeHex(t, GCD)) { if err != errDivisorTooLarge { t.Fatalf("expected divisor too large...
Registered: Tue Dec 30 11:13:12 UTC 2025 - Last Modified: Thu Dec 11 16:27:41 UTC 2025 - 663K bytes - Viewed (0)