Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 597 for unquote (0.13 sec)

  1. src/cmd/compile/internal/types2/check_test.go

    					panic("unreachable")
    				}
    			}
    			unquoted, err := strconv.Unquote(strings.TrimSpace(pattern))
    			if err != nil {
    				t.Errorf("%s:%d:%d: invalid ERROR pattern (cannot unquote %s)", filename, line, want.Pos.Col(), pattern)
    				continue
    			}
    			if substr {
    				if !strings.Contains(gotMsg, unquoted) {
    					continue
    				}
    			} else {
    				rx, err := regexp.Compile(unquoted)
    				if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 19:45:33 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  2. src/internal/trace/raw/textreader.go

    func readData(line string) ([]byte, error) {
    	parts := strings.SplitN(line, "=", 2)
    	if len(parts) < 2 || strings.TrimSpace(parts[0]) != "data" {
    		return nil, fmt.Errorf("malformed data: %q", line)
    	}
    	data, err := strconv.Unquote(strings.TrimSpace(parts[1]))
    	if err != nil {
    		return nil, fmt.Errorf("failed to parse data: %q: %v", line, err)
    	}
    	return []byte(data), nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  3. src/cmd/go/testdata/vcstest/svn/test2-svn-git.txt

    git remote add origin https://vcs-test.swtch.com/git/README-only
    mkdir .git/refs/remotes/origin
    echo 'ref: refs/remotes/origin/master'
    cp stdout .git/refs/remotes/origin/HEAD
    unquote '# pack-refs with: peeled fully-peeled \n7f800d2ac276dd7042ea0e8d7438527d236fd098 refs/remotes/origin/master\n'
    cp stdout .git/packed-refs
    git branch --set-upstream-to=origin/master
    
    git add pkg/pkg.go
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 08 19:37:03 UTC 2022
    - 3.5K bytes
    - Viewed (0)
  4. src/text/template/parse/parse.go

    // been scanned.
    func (t *Tree) parseDefinition() {
    	const context = "define clause"
    	name := t.expectOneOf(itemString, itemRawString, context)
    	var err error
    	t.Name, err = strconv.Unquote(name.val)
    	if err != nil {
    		t.error(err)
    	}
    	t.expect(itemRightDelim, context)
    	var end Node
    	t.Root, end = t.itemList()
    	if end.Type() != nodeEnd {
    		t.errorf("unexpected %s in %s", end, context)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:57:51 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  5. src/cmd/go/internal/modindex/build_read.go

    		if !ok {
    			continue
    		}
    		for _, dspec := range d.Specs {
    			spec, ok := dspec.(*ast.ImportSpec)
    			if !ok {
    				continue
    			}
    			quoted := spec.Path.Value
    			path, err := strconv.Unquote(quoted)
    			if err != nil {
    				return fmt.Errorf("parser returned invalid quoted string: <%s>", quoted)
    			}
    			if path == "embed" {
    				hasEmbed = true
    			}
    
    			doc := spec.Doc
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 23 10:10:21 UTC 2023
    - 13K bytes
    - Viewed (0)
  6. src/go/types/check_test.go

    					panic("unreachable")
    				}
    			}
    			unquoted, err := strconv.Unquote(strings.TrimSpace(pattern))
    			if err != nil {
    				t.Errorf("%s:%d:%d: invalid ERROR pattern (cannot unquote %s)", filename, line, want.col, pattern)
    				continue
    			}
    			if substr {
    				if !strings.Contains(gotMsg, unquoted) {
    					continue
    				}
    			} else {
    				rx, err := regexp.Compile(unquoted)
    				if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 19:45:33 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  7. src/cmd/asm/internal/lex/input.go

    // #include processing.
    func (in *Input) include() {
    	// Find and parse string.
    	tok := in.Stack.Next()
    	if tok != scanner.String {
    		in.expectText("expected string after #include")
    	}
    	name, err := strconv.Unquote(in.Stack.Text())
    	if err != nil {
    		in.Error("unquoting include file name: ", err)
    	}
    	in.expectNewline("#include")
    	// Push tokenizer for file onto stack.
    	fd, err := os.Open(name)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 29 07:48:38 UTC 2023
    - 12.6K bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/test_fuzz_minimize.txt

    	// Make sure that there were exactly 100 bytes written to the corpus entry
    	prefix := []byte("[]byte(")
    	i := bytes.Index(got, prefix)
    	gotBytes := got[i+len(prefix) : len(got)-1]
    	s, err := strconv.Unquote(string(gotBytes))
    	if err != nil {
    		fmt.Fprintln(os.Stderr, err)
    		os.Exit(1)
    	}
    	if want, got := numBytes, len(s); want != got {
    		fmt.Fprintf(os.Stderr, "want %d bytes, got %d\n", want, got)
    		os.Exit(1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 22 16:15:36 UTC 2021
    - 5.8K bytes
    - Viewed (0)
  9. src/cmd/go/testdata/vcstest/hg/vgotest1.txt

    # 17
    at 2018-02-19T17:51:24-05:00
    	# README.md at this commit lacked a trailing newline, so 'git apply' can't
    	# seem to apply it correctly as a patch. Instead, we use 'unquote' to write
    	# the exact contents.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 25 16:48:06 UTC 2022
    - 9.2K bytes
    - Viewed (0)
  10. src/go/ast/resolve.go

    		importErrors := false
    		fileScope := NewScope(pkgScope)
    		for _, spec := range file.Imports {
    			if importer == nil {
    				importErrors = true
    				continue
    			}
    			path, _ := strconv.Unquote(spec.Path.Value)
    			pkg, err := importer(imports, path)
    			if err != nil {
    				p.errorf(spec.Path.Pos(), "could not import %s (%s)", path, err)
    				importErrors = true
    				continue
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 5.4K bytes
    - Viewed (0)
Back to top