- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for Grim (0.19 sec)
-
src/bytes/bytes_test.go
{"Trim", "\u2C6F\u2C6F\u0250\u0250\u2C6F\u2C6F", "\u2C6F", "\u0250\u0250"}, {"Trim", "\x80test\xff", "\xff", "test"}, {"Trim", " Ġ ", " ", "Ġ"}, {"Trim", " Ġİ0", "0 ", "Ġİ"}, //empty string tests {"Trim", "abba", "", "abba"}, {"Trim", "", "123", ""}, {"Trim", "", "", ""}, {"TrimLeft", "abba", "", "abba"}, {"TrimLeft", "", "123", ""}, {"TrimLeft", "", "", ""}, {"TrimRight", "abba", "", "abba"},
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Wed Jan 24 16:07:25 GMT 2024 - 56.2K bytes - Viewed (0) -
src/archive/tar/strconv.go
// Because unused fields are filled with NULs, we need // to skip leading NULs. Fields may also be padded with // spaces or NULs. // So we remove leading and trailing NULs and spaces to // be sure. b = bytes.Trim(b, " \x00") if len(b) == 0 { return 0 } x, perr := strconv.ParseUint(p.parseString(b), 8, 64) if perr != nil { p.err = ErrHeader } return int64(x) }
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Tue Aug 01 14:28:42 GMT 2023 - 9K bytes - Viewed (0) -
src/bytes/example_test.go
fmt.Printf("%s\n", bytes.ToValidUTF8([]byte("\xed\xa0\x80"), []byte("abc"))) // Output: // abc // abc // abc } func ExampleTrim() { fmt.Printf("[%q]", bytes.Trim([]byte(" !!! Achtung! Achtung! !!! "), "! ")) // Output: ["Achtung! Achtung"] } func ExampleTrimFunc() { fmt.Println(string(bytes.TrimFunc([]byte("go-gopher!"), unicode.IsLetter)))
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Mon Mar 04 15:54:40 GMT 2024 - 15K bytes - Viewed (1) -
src/cmd/asm/internal/asm/testdata/ppc64.s
FCFIDS F1, F2 // ec400e9c FCFIDSCC F1, F2 // ec400e9d FRES F1, F2 // ec400830 FRESCC F1, F2 // ec400831 FRIM F1, F2 // fc400bd0 FRIMCC F1, F2 // fc400bd1 FRIP F1, F2 // fc400b90 FRIPCC F1, F2 // fc400b91 FRIZ F1, F2 // fc400b50
Others - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Wed Apr 24 15:53:25 GMT 2024 - 49K bytes - Viewed (0) -
src/bytes/bytes.go
func containsRune(s string, r rune) bool { for _, c := range s { if c == r { return true } } return false } // Trim returns a subslice of s by slicing off all leading and // trailing UTF-8-encoded code points contained in cutset. func Trim(s []byte, cutset string) []byte { if len(s) == 0 { // This is what we've historically done. return nil } if cutset == "" { return s }
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Mon Feb 19 19:51:15 GMT 2024 - 33.8K bytes - Viewed (0)