Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 819 for quoted3 (0.77 sec)

  1. src/net/http/cookie_test.go

    		``,
    	},
    	// Quoted values (issue #46443)
    	{
    		&Cookie{Name: "cookie", Value: "quoted", Quoted: true},
    		`cookie="quoted"`,
    	},
    	{
    		&Cookie{Name: "cookie", Value: "quoted with spaces", Quoted: true},
    		`cookie="quoted with spaces"`,
    	},
    	{
    		&Cookie{Name: "cookie", Value: "quoted,with,commas", Quoted: true},
    		`cookie="quoted,with,commas"`,
    	},
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:33:05 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  2. src/cmd/internal/quoted/quoted.go

    //
    // Keep in sync with cmd/dist/quoted.go
    func Split(s string) ([]string, error) {
    	// Split fields allowing '' or "" around elements.
    	// Quotes further inside the string do not count.
    	var f []string
    	for len(s) > 0 {
    		for len(s) > 0 && isSpaceByte(s[0]) {
    			s = s[1:]
    		}
    		if len(s) == 0 {
    			break
    		}
    		// Accepted quoted string. No unescaping inside.
    		if s[0] == '"' || s[0] == '\'' {
    			quote := s[0]
    			s = s[1:]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 23 21:04:06 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  3. src/cmd/dist/quoted.go

    			s = s[1:]
    		}
    		if len(s) == 0 {
    			break
    		}
    		// Accepted quoted string. No unescaping inside.
    		if s[0] == '"' || s[0] == '\'' {
    			quote := s[0]
    			s = s[1:]
    			i := 0
    			for i < len(s) && s[i] != quote {
    				i++
    			}
    			if i >= len(s) {
    				return nil, fmt.Errorf("unterminated %c string", quote)
    			}
    			f = append(f, s[:i])
    			s = s[i+1:]
    			continue
    		}
    		i := 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 09 14:05:53 UTC 2022
    - 1.2K bytes
    - Viewed (0)
  4. src/strconv/quote.go

    	}
    	quote := in[0]
    	end := index(in[1:], quote)
    	if end < 0 {
    		return "", in, ErrSyntax
    	}
    	end += 2 // position after terminating quote; may be wrong if escape sequences are present
    
    	switch quote {
    	case '`':
    		switch {
    		case !unescape:
    			out = in[:end] // include quotes
    		case !contains(in[:end], '\r'):
    			out = in[len("`") : end-len("`")] // exclude quotes
    		default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:21:28 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  5. src/cmd/go/internal/work/shell_test.go

    	f.Add([]byte(`unescaped space`))
    	f.Add([]byte(`escaped\ space`))
    	f.Add([]byte(`"unterminated quote`))
    	f.Add([]byte(`'unterminated quote`))
    	f.Add([]byte(`unterminated escape\`))
    	f.Add([]byte(`"quote with unterminated escape\`))
    	f.Add([]byte(`'quoted "double quotes"'`))
    	f.Add([]byte(`"quoted 'single quotes'"`))
    	f.Add([]byte(`"\$0"`))
    	f.Add([]byte(`"\$\0"`))
    	f.Add([]byte(`"\$"`))
    	f.Add([]byte(`"\$ "`))
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 15 15:30:05 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  6. src/go/doc/comment/testdata/quote.txt

    -- input --
    Doubled single quotes like `` and '' turn into Unicode double quotes,
    but single quotes ` and ' do not.
    Misplaced markdown fences ``` do not either.
    -- gofmt --
    Doubled single quotes like “ and ” turn into Unicode double quotes,
    but single quotes ` and ' do not.
    Misplaced markdown fences ``` do not either.
    -- text --
    Doubled single quotes like “ and ” turn into Unicode double quotes, but single
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 06 19:06:16 UTC 2022
    - 656 bytes
    - Viewed (0)
  7. src/encoding/csv/writer.go

    }
    
    // fieldNeedsQuotes reports whether our field must be enclosed in quotes.
    // Fields with a Comma, fields with a quote or newline, and
    // fields which start with a space must be enclosed in quotes.
    // We used to quote empty strings, but we do not anymore (as of Go 1.4).
    // The two representations should be equivalent, but Postgres distinguishes
    // quoted vs non-quoted empty string during database imports, and it has
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:04:28 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  8. 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)
  9. platforms/native/language-native/src/test/groovy/org/gradle/language/nativeplatform/internal/incremental/sourceparser/DefaultSourceIncludesTest.groovy

            sourceIncludes.systemIncludes.collect { it.value } == [ "system1", "system2" ]
            sourceIncludes.macroIncludes.collect { it.value } == [ "macro1", "macro2" ]
        }
    
        def "order of includes is preserved" () {
            expect:
            sourceIncludes.all.collect { it.value } == ["quoted1", "system1", "quoted2", "macro1", "system2", "macro2" ]
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  10. 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)
Back to top