Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for RawString (0.24 sec)

  1. 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)
  2. 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)
  3. src/text/scanner/scanner_test.go

    	{String, `"\ufA16"`},
    	{String, `"\U00000000"`},
    	{String, `"\U0000ffAB"`},
    	{String, `"` + f100 + `"`},
    
    	{Comment, "// raw strings"},
    	{RawString, "``"},
    	{RawString, "`\\`"},
    	{RawString, "`" + "\n\n/* foobar */\n\n" + "`"},
    	{RawString, "`" + f100 + "`"},
    
    	{Comment, "// individual characters"},
    	// NUL character is not allowed
    	{'\x01', "\x01"},
    	{' ' - 1, string(' ' - 1)},
    	{'+', "+"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 17 03:41:50 UTC 2022
    - 25.3K bytes
    - Viewed (0)
  4. src/text/scanner/scanner.go

    const (
    	EOF = -(iota + 1)
    	Ident
    	Int
    	Float
    	Char
    	String
    	RawString
    	Comment
    
    	// internal use only
    	skipComment
    )
    
    var tokenString = map[rune]string{
    	EOF:       "EOF",
    	Ident:     "Ident",
    	Int:       "Int",
    	Float:     "Float",
    	Char:      "Char",
    	String:    "String",
    	RawString: "RawString",
    	Comment:   "Comment",
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:57:51 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  5. 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)
  6. src/cmd/asm/internal/lex/lex.go

    	case scanner.Int:
    		return "integer constant"
    	case scanner.Float:
    		return "float constant"
    	case scanner.Char:
    		return "rune constant"
    	case scanner.String:
    		return "string constant"
    	case scanner.RawString:
    		return "raw string constant"
    	case scanner.Comment:
    		return "comment"
    	default:
    		return fmt.Sprintf("%q", rune(t))
    	}
    }
    
    // NewLexer returns a lexer for the named file and the given link context.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 29 18:31:05 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  7. src/go/internal/gccgoimporter/testdata/v1reflect.gox

     func (k <type 28>) String () <type -16>;
    >; Implements (u <type 26>) <type -15>; AssignableTo (u <type 26>) <type -15>; Bits () <type -11>; ChanDir () <type 29 "ChanDir" <type -11>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 30 21:33:51 UTC 2021
    - 10.3K bytes
    - Viewed (0)
  8. 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)
  9. src/go/internal/gccgoimporter/importer_test.go

    	{pkgpath: "nointerface", name: "I", want: "type I int"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 20:17:57 UTC 2022
    - 7.2K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/syntax/scanner.go

    	case '\n':
    		s.nextch()
    		s.lit = "newline"
    		s.tok = _Semi
    
    	case '0', '1', '2', '3', '4', '5', '6', '7', '8', '9':
    		s.number(false)
    
    	case '"':
    		s.stdString()
    
    	case '`':
    		s.rawString()
    
    	case '\'':
    		s.rune()
    
    	case '(':
    		s.nextch()
    		s.tok = _Lparen
    
    	case '[':
    		s.nextch()
    		s.tok = _Lbrack
    
    	case '{':
    		s.nextch()
    		s.tok = _Lbrace
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 28 18:17:41 UTC 2022
    - 17.1K bytes
    - Viewed (0)
Back to top