Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 663 for unquote (0.14 sec)

  1. src/cmd/vendor/golang.org/x/mod/modfile/rule.go

    		var err error
    		if t, err = strconv.Unquote(t); err != nil {
    			return "", err
    		}
    	} else if strings.ContainsAny(t, "\"'`") {
    		// Other quotes are reserved both for possible future expansion
    		// and to avoid confusion. For example if someone types 'x'
    		// we want that to be a syntax error and not a literal x in literal quotation marks.
    		return "", fmt.Errorf("unquoted string cannot contain quote")
    	}
    	*s = AutoQuote(t)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 18:34:56 UTC 2024
    - 46.5K bytes
    - Viewed (0)
  2. src/cmd/vendor/rsc.io/markdown/quote.go

    package markdown
    
    import (
    	"bytes"
    )
    
    type Quote struct {
    	Position
    	Blocks []Block
    }
    
    func (b *Quote) PrintHTML(buf *bytes.Buffer) {
    	buf.WriteString("<blockquote>\n")
    	for _, c := range b.Blocks {
    		c.PrintHTML(buf)
    	}
    	buf.WriteString("</blockquote>\n")
    }
    
    func (b *Quote) printMarkdown(buf *bytes.Buffer, s mdState) {
    	s.prefix += "> "
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 1K bytes
    - Viewed (0)
  3. src/cmd/internal/testdir/testdir_test.go

    	escaped := false
    	quoted := false
    	quote := '\x00'
    	i := 0
    	for _, rune := range s {
    		switch {
    		case escaped:
    			escaped = false
    		case rune == '\\':
    			escaped = true
    			continue
    		case quote != '\x00':
    			if rune == quote {
    				quote = '\x00'
    				continue
    			}
    		case rune == '"' || rune == '\'':
    			quoted = true
    			quote = rune
    			continue
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 20:08:06 UTC 2024
    - 57.5K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/_gen/rulegen.go

    		defer u.scoped()()
    		for _, decl := range node.Decls {
    			u.node(decl)
    		}
    	case *ast.GenDecl:
    		for _, spec := range node.Specs {
    			u.node(spec)
    		}
    	case *ast.ImportSpec:
    		impPath, _ := strconv.Unquote(node.Path.Value)
    		name := path.Base(impPath)
    		u.scope.objects[name] = &object{
    			name: name,
    			pos:  node.Pos(),
    		}
    	case *ast.FuncDecl:
    		u.node(node.Type)
    		if node.Body != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Sep 02 22:09:21 UTC 2023
    - 48.7K bytes
    - Viewed (0)
  5. src/go/build/build.go

    	escaped := false
    	quoted := false
    	quote := '\x00'
    	i := 0
    	for _, rune := range s {
    		switch {
    		case escaped:
    			escaped = false
    		case rune == '\\':
    			escaped = true
    			continue
    		case quote != '\x00':
    			if rune == quote {
    				quote = '\x00'
    				continue
    			}
    		case rune == '"' || rune == '\'':
    			quoted = true
    			quote = rune
    			continue
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62.3K bytes
    - Viewed (0)
  6. pkg/util/shellescape/quote.go

    // limitations under the License.
    
    package shellescape
    
    import (
    	"regexp"
    	"strings"
    )
    
    var unsafeValue = regexp.MustCompile(`[^\\w@%+=:,./-]`)
    
    func Quote(s string) string {
    	// ported from https://github.com/chrissimpkins/shellescape/blob/master/lib/shellescape/main.py
    	if len(s) == 0 {
    		return "''"
    	}
    
    	if unsafeValue.MatchString(s) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Dec 07 20:37:19 UTC 2020
    - 968 bytes
    - Viewed (0)
  7. src/cmd/go/internal/load/pkg.go

    			line = line[:j]
    		}
    		if line[len(line)-1] == '\r' {
    			line = line[:len(line)-1]
    		}
    		line = line[len("module "):]
    
    		// If quoted, unquote.
    		path = strings.TrimSpace(string(line))
    		if path != "" && path[0] == '"' {
    			s, err := strconv.Unquote(path)
    			if err != nil {
    				return ""
    			}
    			path = s
    		}
    		return path
    	})
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 28 17:00:51 UTC 2024
    - 120K bytes
    - Viewed (0)
  8. src/go/printer/nodes.go

    	// if we don't have a proper string, be conservative and return whatever we have
    	if lit.Kind != token.STRING {
    		return lit
    	}
    	s, err := strconv.Unquote(lit.Value)
    	if err != nil {
    		return lit
    	}
    
    	// if the string is an invalid path, return whatever we have
    	//
    	// spec: "Implementation restriction: A compiler may restrict
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 17 18:53:17 UTC 2023
    - 52.6K bytes
    - Viewed (0)
  9. src/cmd/go/internal/modload/init.go

    	data, err := os.ReadFile(file)
    	if err != nil {
    		return ""
    	}
    	m := importCommentRE.FindSubmatch(data)
    	if m == nil {
    		return ""
    	}
    	path, err := strconv.Unquote(string(m[1]))
    	if err != nil {
    		return ""
    	}
    	return path
    }
    
    // WriteOpts control the behavior of WriteGoMod.
    type WriteOpts struct {
    	DropToolchain     bool // go get toolchain@none
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 18:36:30 UTC 2024
    - 69.8K bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/mod_get_changes.txt

    module m
    
    go 1.16
    
    require (
    	rsc.io/quote v1.5.2 // indirect
    	rsc.io/sampler v1.3.0
    )
    -- go.mod.downgrade --
    module m
    
    go 1.16
    
    require (
    	golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c // indirect
    	rsc.io/quote v1.3.0 // indirect
    )
    -- go.mod.usequote --
    module m
    
    go 1.16
    
    require usequote v0.0.0
    
    replace usequote => ./usequote
    -- usequote/go.mod --
    module usequote
    
    go 1.16
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 28 17:19:14 UTC 2021
    - 1.7K bytes
    - Viewed (0)
Back to top