- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 4,138 for String3 (0.12 sec)
-
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) -
src/strings/strings.go
return b.String() } return Map(unicode.ToLower, s) } // ToTitle returns a copy of the string s with all Unicode letters mapped to // their Unicode title case. func ToTitle(s string) string { return Map(unicode.ToTitle, s) } // ToUpperSpecial returns a copy of the string s with all Unicode letters mapped to their // upper case using the case mapping specified by c. func ToUpperSpecial(c unicode.SpecialCase, s string) string {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 16:48:16 UTC 2024 - 31.2K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/stringintconv/string.go
Run: run, } // describe returns a string describing the type typ contained within the type // set of inType. If non-empty, inName is used as the name of inType (this is // necessary so that we can use alias type names that may not be reachable from // inType itself). func describe(typ, inType types.Type, inName string) string { name := inName if typ != inType { name = typeName(typ) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 5.2K bytes - Viewed (0) -
src/runtime/string.go
b = b[len(x):] } return s } func concatstring2(buf *tmpBuf, a0, a1 string) string { return concatstrings(buf, []string{a0, a1}) } func concatstring3(buf *tmpBuf, a0, a1, a2 string) string { return concatstrings(buf, []string{a0, a1, a2}) } func concatstring4(buf *tmpBuf, a0, a1, a2, a3 string) string { return concatstrings(buf, []string{a0, a1, a2, a3}) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:17:26 UTC 2024 - 13.4K bytes - Viewed (0) -
platforms/core-execution/workers/src/test/groovy/org/gradle/workers/internal/IsolatableSerializerRegistryTest.groovy
def encoder = new KryoBackedEncoder(outputStream) def "can serialize/deserialize isolated String values"() { def string1 = "foo" def string2 = "bar" Isolatable<?>[] isolatables = [isolatableFactory.isolate(string1), isolatableFactory.isolate(string2)] when: serialize(isolatables) and: Isolatable<?>[] newIsolatables = deserialize()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed May 08 14:30:36 UTC 2024 - 11.5K bytes - Viewed (0) -
cmd/http-tracer.go
// getOpName sanitizes the operation name for mc func getOpName(name string) (op string) { op = strings.TrimPrefix(name, "github.com/minio/minio/cmd.") op = strings.TrimSuffix(op, "Handler-fm") op = strings.Replace(op, "objectAPIHandlers", "s3", 1) op = strings.Replace(op, "adminAPIHandlers", "admin", 1) op = strings.Replace(op, "(*storageRESTServer)", "storageR", 1) op = strings.Replace(op, "(*peerRESTServer)", "peer", 1)
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 03 15:45:54 UTC 2024 - 6K bytes - Viewed (0) -
src/cmd/dist/buildtool.go
} archCaps = fileArch fileArch = strings.ToLower(fileArch) fileArch = strings.TrimSuffix(fileArch, "splitload") fileArch = strings.TrimSuffix(fileArch, "latelower") if fileArch == goArch { return "", false } if fileArch == strings.TrimSuffix(goArch, "le") { return "", false } return archCaps, true } func bootstrapRewriteFile(srcFile string) string {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 09 23:29:41 UTC 2024 - 11.5K bytes - Viewed (0) -
src/net/smtp/smtp_test.go
"net" "net/textproto" "runtime" "strings" "testing" "time" ) type authTest struct { auth Auth challenges []string name string responses []string } var authTests = []authTest{ {PlainAuth("", "user", "pass", "testserver"), []string{}, "PLAIN", []string{"\x00user\x00pass"}}, {PlainAuth("foo", "bar", "baz", "testserver"), []string{}, "PLAIN", []string{"foo\x00bar\x00baz"}},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 18:42:28 UTC 2024 - 28.5K bytes - Viewed (0) -
schema/naming.go
"encoding/hex" "regexp" "strings" "unicode/utf8" "github.com/jinzhu/inflection" "golang.org/x/text/cases" "golang.org/x/text/language" ) // Namer namer interface type Namer interface { TableName(table string) string SchemaName(table string) string ColumnName(table, column string) string JoinTableName(joinTable string) string RelationshipFKName(Relationship) string CheckerName(table, column string) string
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Wed Jun 12 03:46:59 UTC 2024 - 5.3K bytes - Viewed (0) -
internal/ringbuffer/ring_buffer_benchmark_test.go
package ringbuffer import ( "io" "strings" "testing" ) func BenchmarkRingBuffer_Sync(b *testing.B) { rb := New(1024) data := []byte(strings.Repeat("a", 512)) buf := make([]byte, 512) b.ResetTimer() for i := 0; i < b.N; i++ { rb.Write(data) rb.Read(buf) } } func BenchmarkRingBuffer_AsyncRead(b *testing.B) { // Pretty useless benchmark, but it's here for completeness. rb := New(1024)
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed May 15 00:11:04 UTC 2024 - 1.7K bytes - Viewed (0)