- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 177 for Unescape (5.52 sec)
-
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) -
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. func UnquoteChar(s string, quote byte) (value rune, multibyte bool, tail string, err error) { // easy cases if len(s) == 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 14:21:28 UTC 2024 - 16.5K bytes - Viewed (0) -
tests/integration/security/normalization_test.go
switch i { case 0x5c: output = strings.ReplaceAll(output, `\`, `/`) case 0x7e: output = strings.ReplaceAll(output, `%7e`, `~`) } if err != nil { t.Errorf("failed to unescape percent encoded path %s: %v", input, err) } } percentEncodedCases = append(percentEncodedCases, expect{in: input, out: output}) } framework.NewTest(t). Run(func(t framework.TestContext) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Apr 08 22:02:59 UTC 2024 - 7.7K bytes - Viewed (0) -
src/cmd/compile/internal/ir/func.go
func ParseLinkFuncName(name string) (pkg, sym string, err error) { pkg, sym = splitPkg(name) if pkg == "" { return "", "", fmt.Errorf("no package path in name") } pkg, err = objabi.PrefixToPath(pkg) // unescape if err != nil { return "", "", fmt.Errorf("malformed package path: %v", err) } return pkg, sym, nil } // Borrowed from x/mod. func modPathOK(r rune) bool { if r < utf8.RuneSelf {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:05:44 UTC 2024 - 21.1K bytes - Viewed (0) -
doc/godebug.md
client or server to have an empty Content-Length header. This behavior is controlled by the `httplaxcontentlength` setting. Go 1.22 changed the behavior of ServeMux to accept extended patterns and unescape both patterns and request paths by segment. This behavior can be controlled by the [`httpmuxgo121` setting](/pkg/net/http/#ServeMux). Go 1.22 added the [Alias type](/pkg/go/types#Alias) to [go/types](/pkg/go/types)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 17:52:17 UTC 2024 - 15.9K bytes - Viewed (0) -
src/internal/abi/escape.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 18 21:25:11 UTC 2024 - 884 bytes - Viewed (0) -
src/time/time.go
// The time must be a quoted string in the RFC 3339 format. func (t *Time) UnmarshalJSON(data []byte) error { if string(data) == "null" { return nil } // TODO(https://go.dev/issue/47353): Properly unescape a JSON string. if len(data) < 2 || data[0] != '"' || data[len(data)-1] != '"' { return errors.New("Time.UnmarshalJSON: input is not a JSON string") } data = data[len(`"`) : len(data)-len(`"`)] var err error
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 50.7K bytes - Viewed (0) -
src/crypto/internal/boring/boring.go
if bn == nil { return false } *bnp = bn return true } // noescape hides a pointer from escape analysis. noescape is // the identity function but escape analysis doesn't think the // output depends on the input. noescape is inlined and currently // compiles down to zero instructions. // USE CAREFULLY! // //go:nosplit func noescape(p unsafe.Pointer) unsafe.Pointer { x := uintptr(p) return unsafe.Pointer(x ^ 0)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 06 14:00:54 UTC 2024 - 3K bytes - Viewed (0) -
src/runtime/map_test.go
if runtime.MapBucketsPointerIsNil(localMap) { t.Errorf("no escape: buckets pointer is nil for non-escaping map") } for i := 0; i < tt.n; i++ { localMap[i] = i } if got := runtime.MapBucketsCount(localMap); got != tt.noescape { t.Errorf("no escape: n=%d want %d buckets, got %d", tt.n, tt.noescape, got) } escapingMap := runtime.Escape(map[int]int{})
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 33.5K bytes - Viewed (0) -
src/strings/builder.go
} func (b *Builder) copyCheck() { if b.addr == nil { // This hack works around a failing of Go's escape analysis // that was causing b to escape and be heap allocated. // See issue 23382. // TODO: once issue 7921 is fixed, this should be reverted to // just "b.addr = b". b.addr = (*Builder)(abi.NoEscape(unsafe.Pointer(b))) } else if b.addr != b { panic("strings: illegal use of non-zero Builder copied by value") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 17 21:09:59 UTC 2024 - 3.2K bytes - Viewed (0)