- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 5,940 for stringAt (0.14 sec)
-
src/cmd/go/internal/modindex/read.go
) func (sf *sourceFile) error() string { return sf.d.stringAt(sf.pos + sourceFileError) } func (sf *sourceFile) parseError() string { return sf.d.stringAt(sf.pos + sourceFileParseError) } func (sf *sourceFile) synopsis() string { return sf.d.stringAt(sf.pos + sourceFileSynopsis) } func (sf *sourceFile) name() string { return sf.d.stringAt(sf.pos + sourceFileName) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 14:34:32 UTC 2024 - 29.7K bytes - Viewed (0) -
src/go/internal/gcimporter/iimport.go
// for details. func tparamName(exportName string) string { // Remove the "path" from the type param name that makes it unique. ix := strings.LastIndex(exportName, ".") if ix < 0 { errorf("malformed type parameter export name %s: missing prefix", exportName) } name := exportName[ix+1:] if strings.HasPrefix(name, blankMarker) { return "_" } return name
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 19.2K bytes - Viewed (0) -
src/cmd/internal/goobj/objfile.go
b := r.BytesAt(off, 1) return b[0] } func (r *Reader) StringAt(off uint32, len uint32) string { b := r.b[off : off+len] if r.readonly { return toString(b) // backed by RO memory, ok to make unsafe string } return string(b) } func toString(b []byte) string { if len(b) == 0 { return "" } return unsafe.String(&b[0], len(b)) } func (r *Reader) StringRef(off uint32) string {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 19:57:43 UTC 2024 - 23.8K bytes - Viewed (0) -
test/typeparam/stringer.go
"strconv" ) // Simple constraint type Stringer interface { String() string } func stringify[T Stringer](s []T) (ret []string) { for _, v := range s { ret = append(ret, v.String()) } return ret } type myint int func (i myint) String() string { return strconv.Itoa(int(i)) } // Constraint with an embedded interface, but still only requires String() type Stringer2 interface {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 1.6K bytes - Viewed (0) -
src/cmd/internal/obj/stringer.go
//go:build ignore // This is a mini version of the stringer tool customized for the Anames table // in the architecture support for obj. // This version just generates the slice of strings, not the String method. package main import ( "bufio" "flag" "fmt" "log" "os" "regexp" "strings" ) var ( input = flag.String("i", "", "input file name") output = flag.String("o", "", "output file name")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:27 UTC 2023 - 2.2K bytes - Viewed (0) -
test/typeparam/boundmethod.go
for _, v := range s { // Test normal bounds method call on type param x1 := v.String() // Test converting type param to its bound interface first v1 := Stringer(v) x2 := v1.String() // Test method expression with type param type f1 := T.String x3 := f1(v) // Test creating and calling closure equivalent to the method expression f2 := func(v1 T) string { return Stringer(v1).String() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 25 14:29:30 UTC 2023 - 2.7K bytes - Viewed (0) -
src/internal/stringslite/strings.go
} return s[:len(s)-len(suffix)], true } func TrimPrefix(s, prefix string) string { if HasPrefix(s, prefix) { return s[len(prefix):] } return s } func TrimSuffix(s, suffix string) string { if HasSuffix(s, suffix) { return s[:len(s)-len(suffix)] } return s } func Clone(s string) string { if len(s) == 0 { return "" } b := make([]byte, len(s)) copy(b, s)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat May 04 01:23:42 UTC 2024 - 2.9K bytes - Viewed (0) -
android-test-app/src/main/res/values/strings.xml
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Sat Dec 23 14:46:51 UTC 2023 - 73 bytes - Viewed (0) -
regression-test/src/main/res/values/strings.xml
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Fri Nov 13 07:09:56 UTC 2020 - 76 bytes - Viewed (0) -
src/cmd/compile/internal/syntax/tokens.go
// not represent the literal kind well anymore. Remove it? const ( IntLit LitKind = iota FloatLit ImagLit RuneLit StringLit ) type Operator uint //go:generate stringer -type Operator -linecomment tokens.go const ( _ Operator = iota // Def is the : in := Def // : Not // ! Recv // <- Tilde // ~ // precOrOr
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 20 14:52:38 UTC 2023 - 2.6K bytes - Viewed (0)