Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 488 for Unescape (4.55 sec)

  1. staging/src/k8s.io/apiserver/pkg/cel/common/values.go

    	}
    }
    
    // escapeKeyProps returns identifiers with Escape applied to each.
    // Identifiers that cannot be escaped are left as-is. They are inaccessible to CEL programs but are
    // are still needed internally to perform equality checks.
    func escapeKeyProps(idents []string) []string {
    	result := make([]string, len(idents))
    	for i, prop := range idents {
    		if escaped, ok := cel.Escape(prop); ok {
    			result[i] = escaped
    		} else {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 23 22:30:17 UTC 2023
    - 20.5K bytes
    - Viewed (0)
  2. src/internal/abi/escape.go

    //
    //go:nosplit
    //go:nocheckptr
    func NoEscape(p unsafe.Pointer) unsafe.Pointer {
    	x := uintptr(p)
    	return unsafe.Pointer(x ^ 0)
    }
    
    var alwaysFalse bool
    var escapeSink any
    
    // Escape forces any pointers in x to escape to the heap.
    func Escape[T any](x T) T {
    	if alwaysFalse {
    		escapeSink = x
    	}
    	return x
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 21:25:11 UTC 2024
    - 884 bytes
    - Viewed (0)
  3. src/html/template/escape.go

    // representation of its arguments.
    func HTMLEscaper(args ...any) string {
    	return template.HTMLEscaper(args...)
    }
    
    // JSEscape writes to w the escaped JavaScript equivalent of the plain text data b.
    func JSEscape(w io.Writer, b []byte) {
    	template.JSEscape(w, b)
    }
    
    // JSEscapeString returns the escaped JavaScript equivalent of the plain text data s.
    func JSEscapeString(s string) string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 02 15:18:39 UTC 2023
    - 32.4K bytes
    - Viewed (0)
  4. src/html/escape.go

    // always true.
    func EscapeString(s string) string {
    	return htmlEscaper.Replace(s)
    }
    
    // UnescapeString unescapes entities like "&lt;" to become "<". It unescapes a
    // larger range of entities than EscapeString escapes. For example, "&aacute;"
    // unescapes to "รก", as does "&#225;" and "&#xE1;".
    // UnescapeString(EscapeString(s)) == s always holds, but the converse isn't
    // always true.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 13 07:00:18 UTC 2020
    - 5K bytes
    - Viewed (0)
  5. 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)
  6. test/escape.go

    	_, p = out_escapes_2(17)
    	_, q = out_escapes_2(18)
    	chk(p, q, 17, "out_escapes_2")
    
    	x := defer1(20)
    	if x != 20 {
    		println("defer failed", x)
    		bad = true
    	}
    
    	if bad {
    		panic("BUG: no escape")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 06 18:34:24 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  7. test/fixedbugs/issue27557.go

    func f1() {
    	var t T
    	f := t.noescape // ERROR "t.noescape does not escape"
    	f()
    }
    
    func f2() {
    	var t T       // ERROR "moved to heap"
    	f := t.escape // ERROR "t.escape does not escape"
    	f()
    }
    
    func f3() {
    	var t T        // ERROR "moved to heap"
    	f := t.returns // ERROR "t.returns does not escape"
    	sink = f()
    }
    
    type T struct{}
    
    func (t *T) noescape()   {}           // ERROR "t does not escape"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jul 28 21:41:07 UTC 2021
    - 949 bytes
    - Viewed (0)
  8. src/mime/quotedprintable/example_test.go

    		`=48=65=6C=6C=6F=2C=20=47=6F=70=68=65=72=73=21`,
    		`invalid escape: <b style="font-size: 200%">hello</b>`,
    		"Hello, Gophers! This symbol will be unescaped: =3D and this will be written in =\r\none line.",
    	} {
    		b, err := io.ReadAll(quotedprintable.NewReader(strings.NewReader(s)))
    		fmt.Printf("%s %v\n", b, err)
    	}
    	// Output:
    	// Hello, Gophers! <nil>
    	// invalid escape: <b style="font-size: 200%">hello</b> <nil>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 20 18:41:18 UTC 2020
    - 1K bytes
    - Viewed (0)
  9. 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)
  10. src/go/doc/comment/testdata/escape.txt

    Russ Cox <******@****.***> 1648988431 -0400
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:31:40 UTC 2022
    - 535 bytes
    - Viewed (0)
Back to top