- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for RawString (0.31 sec)
-
platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/Swift5XCTest.groovy
return [testCase("testRawString", '''let value = 42 let rawString = #"Raw string are ones with "quotes", backslash (\\), but can do special string interpolation (\\#(value))"# XCTAssertEqual(rawString, "Raw string are ones with \\"quotes\\", backslash (\\\\), but can do special string interpolation (42)")''')] } }] }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 16 20:20:03 UTC 2023 - 1.4K bytes - Viewed (0) -
src/runtime/string.go
var b []byte if buf != nil { b = buf[:] s = slicebytetostringtmp(&b[0], len(b)) } else { s, b = rawstring(4) } if int64(rune(v)) != v { v = runeError } n := encoderune(b, rune(v)) return s[:n] } // rawstring allocates storage for a new string. The returned // string and byte slice both refer to the same storage. // The storage is not zeroed. Callers should use
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:17:26 UTC 2024 - 13.4K bytes - Viewed (0) -
src/text/scanner/scanner.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 20:57:51 UTC 2024 - 20.3K bytes - Viewed (0) -
src/reflect/benchmark_test.go
} var sinkAll struct { RawBool bool RawString string RawBytes []byte RawInt int } func BenchmarkBool(b *testing.B) { for i := 0; i < b.N; i++ { sinkAll.RawBool = sourceAll.Bool.Bool() } } func BenchmarkString(b *testing.B) { for i := 0; i < b.N; i++ { sinkAll.RawString = sourceAll.String.String() } } func BenchmarkBytes(b *testing.B) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Nov 19 17:09:03 UTC 2023 - 8.8K bytes - Viewed (0) -
src/cmd/internal/goobj/objfile.go
return } w.stringMap[s] = w.off w.RawString(s) } func (w *Writer) stringOff(s string) uint32 { off, ok := w.stringMap[s] if !ok { panic(fmt.Sprintf("writeStringRef: string not added: %q", s)) } return off } func (w *Writer) StringRef(s string) { w.Uint32(uint32(len(s))) w.Uint32(w.stringOff(s)) } func (w *Writer) RawString(s string) { w.wr.WriteString(s)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 19:57:43 UTC 2024 - 23.8K bytes - Viewed (0) -
src/runtime/arena.go
// Not stored in a user arena chunk. return s } // Heap-allocate storage for a copy. var x any switch t.Kind_ & abi.KindMask { case abi.String: s1 := s.(string) s2, b := rawstring(len(s1)) copy(b, s1) x = s2 case abi.Slice: len := (*slice)(e.data).len et := (*slicetype)(unsafe.Pointer(t)).Elem sl := new(slice)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 17:44:56 UTC 2024 - 37.9K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go
{"Int", Const, 0}, {"Position", Type, 0}, {"Position.Column", Field, 0}, {"Position.Filename", Field, 0}, {"Position.Line", Field, 0}, {"Position.Offset", Field, 0}, {"RawString", Const, 0}, {"ScanChars", Const, 0}, {"ScanComments", Const, 0}, {"ScanFloats", Const, 0}, {"ScanIdents", Const, 0}, {"ScanInts", Const, 0}, {"ScanRawStrings", Const, 0},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 534.2K bytes - Viewed (0)