Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 342 for quoted0 (0.17 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/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)
  3. platforms/jvm/plugins-application/src/main/java/org/gradle/api/internal/plugins/StartScriptTemplateBindingFactory.java

            //argument quoting:
            // - " must be encoded as \"
            // - % must be encoded as %%
            // - pathological case: \" must be encoded as \\\", but other than that, \ MUST NOT be quoted
            // - other characters (including ') will not be quoted
            // - use a state machine rather than regexps
            for (char ch = it.first(); ch != CharacterIterator.DONE; ch = it.next()) {
                String repl = Character.toString(ch);
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 28 23:38:57 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  4. doc/next/6-stdlib/99-minor/net/http/46443.md

    [Cookie] now preserves double quotes surrounding a cookie value.
    The new [Cookie.Quoted] field indicates whether the [Cookie.Value]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 14:33:17 UTC 2024
    - 155 bytes
    - Viewed (0)
  5. src/encoding/csv/reader.go

    //
    // Fields which start and stop with the quote character " are called
    // quoted-fields. The beginning and ending quote are not part of the
    // field.
    //
    // The source:
    //
    //	normal string,"quoted-field"
    //
    // results in the fields
    //
    //	{`normal string`, `quoted-field`}
    //
    // Within a quoted-field a quote character followed by a second quote
    // character is considered a single quote.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:32:28 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  6. src/strconv/doc.go

    //
    // # String Conversions
    //
    // [Quote] and [QuoteToASCII] convert strings to quoted Go string literals.
    // The latter guarantees that the result is an ASCII string, by escaping
    // any non-ASCII Unicode with \u:
    //
    //	q := strconv.Quote("Hello, 世界")
    //	q := strconv.QuoteToASCII("Hello, 世界")
    //
    // [QuoteRune] and [QuoteRuneToASCII] are similar but accept runes and
    // return quoted Go rune literals.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:21:28 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  7. src/net/mail/message.go

    		}
    	}()
    
    	// local-part = dot-atom / quoted-string
    	var localPart string
    	p.skipSpace()
    	if p.empty() {
    		return "", errors.New("mail: no addr-spec")
    	}
    	if p.peek() == '"' {
    		// quoted-string
    		debug.Printf("consumeAddrSpec: parsing quoted-string")
    		localPart, err = p.consumeQuotedString()
    		if localPart == "" {
    			err = errors.New("mail: empty quoted string in addr-spec")
    		}
    	} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 11:31:03 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  8. src/net/http/cookie.go

    // value was enclosed in double quotes.
    func parseCookieValue(raw string, allowDoubleQuote bool) (value string, quoted, ok bool) {
    	// Strip the quotes, if present.
    	if allowDoubleQuote && len(raw) > 1 && raw[0] == '"' && raw[len(raw)-1] == '"' {
    		raw = raw[1 : len(raw)-1]
    		quoted = true
    	}
    	for i := 0; i < len(raw); i++ {
    		if !validCookieValueByte(raw[i]) {
    			return "", quoted, false
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:33:05 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  9. internal/event/target/postgresql.go

    			return r
    		default:
    			valid = false
    			return -1
    		}
    	}, name)
    
    	if valid {
    		// check for simple name or quoted name
    		// - letter/underscore followed by one or more letter/digit/underscore
    		// - any text between quotes (text cannot contain a quote itself)
    		if match, err := regexp.MatchString("^[a_][a0_$]*$", cleaned); err != nil {
    			return err
    		} else if match {
    			return nil
    		}
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/endpoints/discovery/aggregated/etag.go

    	targetGV schema.GroupVersion,
    	serializer runtime.NegotiatedSerializer,
    	w http.ResponseWriter,
    	req *http.Request,
    ) {
    	// ETag must be enclosed in double quotes:
    	// https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/ETag
    	quotedHash := strconv.Quote(hash)
    	w.Header().Set("ETag", quotedHash)
    	w.Header().Set("Vary", "Accept")
    	w.Header().Set("Cache-Control", "public")
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 18:15:22 UTC 2024
    - 2.5K bytes
    - Viewed (0)
Back to top