Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 205 for unescaped (0.23 sec)

  1. src/net/http/server_test.go

    	}{
    		{
    			"/a", // this pattern matches a path that unescapes to "/a"
    			[]string{"/a", "/%61"},
    			[]string{"/a", "/%61"},
    		},
    		{
    			"/%62", // patterns are unescaped by segment; matches paths that unescape to "/b"
    			[]string{"/b", "/%62"},
    			[]string{"/%2562"}, // In 1.21, patterns were not unescaped but paths were.
    		},
    		{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 13 13:54:22 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  2. src/strconv/quote.go

    // and therefore which escaped quote character is permitted.
    // If set to a single quote, it permits the sequence \' and disallows unescaped '.
    // If set to a double quote, it permits \" and disallows unescaped ".
    // If set to zero, it does not permit either escape and allows both quote characters to appear unescaped.
    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. src/net/url/url_test.go

    	}
    
    }
    
    var escapeBenchmarks = []struct {
    	unescaped string
    	query     string
    	path      string
    }{
    	{
    		unescaped: "one two",
    		query:     "one+two",
    		path:      "one%20two",
    	},
    	{
    		unescaped: "Фотки собак",
    		query:     "%D0%A4%D0%BE%D1%82%D0%BA%D0%B8+%D1%81%D0%BE%D0%B1%D0%B0%D0%BA",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:52:38 UTC 2024
    - 52.1K bytes
    - Viewed (0)
  4. platforms/native/language-native/src/test/groovy/org/gradle/language/nativeplatform/internal/incremental/sourceparser/PreprocessingReaderTest.groovy

    line comments.
    """
    
            then:
            output == "\nHere is a \nstring\n\nwith interspersed \nline comments."
        }
    
        def "can cope with multiple unescaped and escaped \\r characters"() {
            when:
            input = "Here \r\r\\\r\\\r${BN}\\\r\\\r\\\r\\\r."
            then:
            output == "Here \n\n\\\n\\\n\\\n\\\n\\\n\\\n."
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  5. src/cmd/vendor/rsc.io/markdown/link.go

    	// “A sequence of zero or more characters between an opening < and a closing >
    	// that contains no line endings or unescaped < or > characters,”
    	if s[i] == '<' {
    		for j := i + 1; ; j++ {
    			if j >= len(s) || s[j] == '\n' || s[j] == '<' {
    				return "", 0, false
    			}
    			if s[j] == '>' {
    				// TODO unescape?
    				return mdUnescape(s[i+1 : j]), j + 1, true
    			}
    			if s[j] == '\\' {
    				j++
    			}
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 20.7K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/http/HttpHeaders.kt

    private fun Buffer.startsWith(prefix: Byte): Boolean = !exhausted() && this[0] == prefix
    
    /**
     * Reads a double-quoted string, unescaping quoted pairs like `\"` to the 2nd character in each
     * sequence. Returns the unescaped string, or null if the buffer isn't prefixed with a
     * double-quoted string.
     */
    @Throws(EOFException::class)
    private fun Buffer.readQuotedString(): String? {
      require(readByte() == '\"'.code.toByte())
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  7. src/mime/quotedprintable/reader_test.go

    		{in: " A B =\r\n C ", want: " A B  C"},
    		{in: " A B =\n C ", want: " A B  C"}, // lax. treating LF as CRLF
    		{in: "foo=\nbar", want: "foobar"},
    		{in: "foo\x00bar", want: "foo", err: "quotedprintable: invalid unescaped byte 0x00 in body"},
    		{in: "foo bar\xff", want: "foo bar\xff"},
    
    		// Equal sign.
    		{in: "=3D30\n", want: "=30\n"},
    		{in: "=00=FF0=\n", want: "\x00\xff0"},
    
    		// Trailing whitespace
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation.go

    			}
    		}
    	}
    	return errs, remainingBudget
    }
    
    var unescapeMatcher = regexp.MustCompile(`\\.`)
    
    func unescapeSingleQuote(s string) (string, error) {
    	var err error
    	unescaped := unescapeMatcher.ReplaceAllStringFunc(s, func(matchStr string) string {
    		directive := matchStr[1]
    		switch directive {
    		case 'a':
    			return "\a"
    		case 'b':
    			return "\b"
    		case 'f':
    			return "\f"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 20 18:21:31 UTC 2024
    - 32.2K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/sys/windows/exec_windows.go

    		commandLine = append(commandLine, EscapeArg(arg)...)
    	}
    	return string(commandLine)
    }
    
    // DecomposeCommandLine breaks apart its argument command line into unescaped parts using CommandLineToArgv,
    // as gathered from GetCommandLine, QUERY_SERVICE_CONFIG's BinaryPathName argument, or elsewhere that
    // command lines are passed around.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 10 16:32:44 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  10. src/net/url/url.go

    //
    // PathUnescape is identical to [QueryUnescape] except that it does not
    // unescape '+' to ' ' (space).
    func PathUnescape(s string) (string, error) {
    	return unescape(s, encodePathSegment)
    }
    
    // unescape unescapes a string; the mode specifies
    // which section of the URL string is being unescaped.
    func unescape(s string, mode encoding) (string, error) {
    	// Count %, check that they're well-formed.
    	n := 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:53 UTC 2024
    - 36.1K bytes
    - Viewed (0)
Back to top