- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for TrimLeft (0.06 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 Sep 09 11:13:09 UTC 2025 - Last Modified: Mon Jul 28 18:13:58 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 Sep 09 11:13:09 UTC 2025 - Last Modified: Wed Mar 26 01:02:50 UTC 2025 - 11.9K bytes - Viewed (0) -
src/bytes/example_test.go
// Output: // -gopher! // "go-gopher!" // go-gopher // go-gopher! } func ExampleTrimLeft() { fmt.Print(string(bytes.TrimLeft([]byte("453gopher8257"), "0123456789"))) // Output: // gopher8257 } func ExampleTrimLeftFunc() { fmt.Println(string(bytes.TrimLeftFunc([]byte("go-gopher"), unicode.IsLetter)))
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Mon May 12 16:07:54 UTC 2025 - 16.5K bytes - Viewed (0) -
src/bytes/bytes.go
return trimLeftASCII(trimRightASCII(s, &as), &as) } return trimLeftUnicode(trimRightUnicode(s, cutset), cutset) } // TrimLeft returns a subslice of s by slicing off all leading // UTF-8-encoded code points contained in cutset. func TrimLeft(s []byte, cutset string) []byte { if len(s) == 0 { // This is what we've historically done. return nil } if cutset == "" { return s
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Wed Sep 03 14:04:47 UTC 2025 - 35.5K bytes - Viewed (0) -
api/go1.txt
pkg bytes, func ToUpperSpecial(unicode.SpecialCase, []uint8) []uint8 pkg bytes, func Trim([]uint8, string) []uint8 pkg bytes, func TrimFunc([]uint8, func(int32) bool) []uint8 pkg bytes, func TrimLeft([]uint8, string) []uint8 pkg bytes, func TrimLeftFunc([]uint8, func(int32) bool) []uint8 pkg bytes, func TrimRight([]uint8, string) []uint8 pkg bytes, func TrimRightFunc([]uint8, func(int32) bool) []uint8
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Wed Aug 14 18:58:28 UTC 2013 - 1.7M bytes - Viewed (0) -
lib/fips140/v1.0.0.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 Sep 09 11:13:09 UTC 2025 - Last Modified: Wed Jan 29 15:10:35 UTC 2025 - 635K bytes - Viewed (0)