Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for unescaped (0.15 sec)

  1. 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)
  2. src/regexp/syntax/parse.go

    			re.Rune = append(re.Rune, '\n', '\n')
    		}
    	}
    
    	class := re.Rune
    	first := true // ] and - are okay as first char in class
    	for t == "" || t[0] != ']' || first {
    		// POSIX: - is only okay unescaped as first or last in class.
    		// Perl: - is okay anywhere.
    		if t != "" && t[0] == '-' && p.flags&PerlX == 0 && !first && (len(t) == 1 || t[1] != ']') {
    			_, size := utf8.DecodeRuneInString(t[1:])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 13:59:01 UTC 2024
    - 52.1K bytes
    - Viewed (0)
  3. src/html/template/escape_test.go

    			}
    			if w, g := test.output, b.String(); w != g {
    				t.Fatalf("%s: escaped output: want\n\t%q\ngot\n\t%q", test.name, w, g)
    			}
    			b.Reset()
    			if err := tmpl.Execute(b, pdata); err != nil {
    				t.Fatalf("%s: template execution failed for pointer: %s", test.name, err)
    			}
    			if w, g := test.output, b.String(); w != g {
    				t.Fatalf("%s: escaped output for pointer: want\n\t%q\ngot\n\t%q", test.name, w, g)
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 16 03:29:27 UTC 2023
    - 56.2K bytes
    - Viewed (0)
  4. internal/s3select/select_test.go

    				t.Fatal("setup error: expected cpu to be unsupported")
    			}
    			testReq := testCase.requestXML
    			if len(testReq) == 0 {
    				var escaped bytes.Buffer
    				xml.EscapeText(&escaped, []byte(testCase.query))
    				testReq = []byte(fmt.Sprintf(defRequest, escaped.String()))
    			}
    			s3Select, err := NewS3Select(bytes.NewReader(testReq))
    			if err != nil {
    				t.Fatal(err)
    			}
    
    			in := input
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Dec 23 07:19:11 UTC 2023
    - 76.2K bytes
    - Viewed (0)
  5. src/cmd/internal/testdir/testdir_test.go

    func splitQuoted(s string) (r []string, err error) {
    	var args []string
    	arg := make([]rune, len(s))
    	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
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 20:08:06 UTC 2024
    - 57.5K bytes
    - Viewed (0)
  6. src/cmd/vendor/github.com/ianlancetaylor/demangle/demangle.go

    	}
    	return a
    }
    
    // name parses:
    //
    //	<name> ::= <nested-name>
    //	       ::= <unscoped-name>
    //	       ::= <unscoped-template-name> <template-args>
    //	       ::= <local-name>
    //
    //	<unscoped-name> ::= <unqualified-name>
    //	                ::= St <unqualified-name>
    //
    //	<unscoped-template-name> ::= <unscoped-name>
    //	                         ::= <substitution>
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 94.1K bytes
    - Viewed (0)
  7. src/go/build/build.go

    func splitQuoted(s string) (r []string, err error) {
    	var args []string
    	arg := make([]rune, len(s))
    	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
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62.3K bytes
    - Viewed (0)
  8. src/net/http/fs_test.go

    		}
    		if trimmed := strings.TrimSuffix(strings.TrimPrefix(s, dirListPrefix), dirListSuffix); trimmed != test.escaped {
    			t.Errorf("test %q: listing dir, filename escaped to %q, want %q", test.name, trimmed, test.escaped)
    		}
    		res.Body.Close()
    	}
    }
    
    func TestFileServerSortsNames(t *testing.T) { run(t, testFileServerSortsNames) }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 23:39:44 UTC 2024
    - 49.9K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/celcoststability_test.go

    				"'%e'.format([3.14]) == '3.140000 × 10⁰⁰'":        3,
    				"'%o %o %o'.format([7, 8, 9]) == '7 10 11'":       2,
    				"'%b %b %b'.format([7, 8, 9]) == '111 1000 1001'": 3,
    			},
    		},
    		{name: "escaped strings",
    			obj:    objs("l1\nl2", "l1\nl2"),
    			schema: schemas(stringType, stringType),
    			expectCost: map[string]int64{
    				ValsEqualThemselvesAndDataLiteral("self.val1", "self.val2", "'l1\\nl2'"): 11,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:20:16 UTC 2024
    - 80.2K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/HttpUrl.kt

     * start of the URL's query. But within the query and fragment components, the `?` character
     * doesn't delimit anything and doesn't need to be escaped.
     *
     * ```java
     * HttpUrl url = HttpUrl.parse("http://who-let-the-dogs.out").newBuilder()
     *     .addPathSegment("_Who?_")
     *     .query("_Who?_")
     *     .fragment("_Who?_")
     *     .build();
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Tue Jan 09 12:33:05 UTC 2024
    - 63.5K bytes
    - Viewed (0)
Back to top