Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 1,398 for mescapes (0.13 sec)

  1. src/go/doc/comment/markdown.go

    			out.WriteByte(' ')
    			start = i + 1
    			continue
    		case '`', '_', '*', '[', '<', '\\':
    			// Not all of these need to be escaped all the time,
    			// but is valid and easy to do so.
    			// We assume the Markdown is being passed to a
    			// Markdown renderer, not edited by a person,
    			// so it's fine to have escapes that are not strictly
    			// necessary in some cases.
    			out.WriteString(s[start:i])
    			out.WriteByte('\\')
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:31:48 UTC 2022
    - 4.4K bytes
    - Viewed (0)
  2. platforms/software/build-init/src/test/groovy/org/gradle/buildinit/plugins/internal/TemplateValueTest.groovy

    class TemplateValueTest extends Specification {
        def "escapes value for inclusion in a comment"() {
            expect:
            new TemplateValue(value).groovyComment == escaped
    
            where:
            value   | escaped
            ''      | ''
            'abc'   | 'abc'
            'a\n\t' | 'a\n\t'
            /a\b/   | /a\\b/
        }
    
        def "escapes value for inclusion in a string"() {
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 13:47:19 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  3. test/escape_mutations.go

    	copy(out, []byte(s)) // ERROR "zero-copy string->\[\]byte conversion" "\(\[\]byte\)\(s\) does not escape"
    }
    
    func i(s string) byte { // ERROR "s does not escape, mutate, or call"
    	p := []byte(s) // ERROR "zero-copy string->\[\]byte conversion" "\(\[\]byte\)\(s\) does not escape"
    	return p[20]
    }
    
    func j(s string, x byte) { // ERROR "s does not escape, mutate, or call"
    	p := []byte(s) // ERROR "\(\[\]byte\)\(s\) does not escape"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 18 11:58:37 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  4. test/escape_closure.go

    // Test escape analysis for closure arguments.
    
    package escape
    
    var sink interface{}
    
    func ClosureCallArgs0() {
    	x := 0
    	func(p *int) { // ERROR "p does not escape" "func literal does not escape"
    		*p = 1
    	}(&x)
    }
    
    func ClosureCallArgs1() {
    	x := 0
    	for {
    		func(p *int) { // ERROR "p does not escape" "func literal does not escape"
    			*p = 1
    		}(&x)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 17 16:36:09 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  5. test/escape_array.go

    	a.s = x
    	b := new(a65537) // ERROR "new\(a65537\) escapes to heap"
    	b.s = y
    }
    
    // BAD: x need not leak.
    func doesMakeSlice(x *string, y *string) { // ERROR "leaking param: x" "leaking param: y"
    	a := make([]*string, 10) // ERROR "make\(\[\]\*string, 10\) does not escape"
    	a[0] = x
    	b := make([]*string, 65537) // ERROR "make\(\[\]\*string, 65537\) escapes to heap"
    	b[0] = y
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 26 23:50:32 UTC 2021
    - 3.6K bytes
    - Viewed (0)
  6. src/text/tabwriter/tabwriter.go

    // assumed to be zero (tags) and one (entities) for formatting purposes.
    //
    // A segment of text may be escaped by bracketing it with [Escape]
    // characters. The tabwriter passes escaped text segments through
    // unchanged. In particular, it does not interpret any tabs or line
    // breaks within the segment. If the [StripEscape] flag is set, the
    // Escape characters are stripped from the output; otherwise they
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 16:46:34 UTC 2024
    - 17.8K bytes
    - Viewed (0)
  7. cmd/bootstrap-messages.go

    Harshavardhana <******@****.***> 1692785226 -0700
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Aug 23 10:07:06 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. staging/src/k8s.io/apiserver/pkg/cel/escaping_test.go

    		{unescaped: "true", escaped: "__true__"},
    		{unescaped: "false", escaped: "__false__"},
    		{unescaped: "null", escaped: "__null__"},
    		{unescaped: "in", escaped: "__in__"},
    		{unescaped: "as", escaped: "__as__"},
    		{unescaped: "break", escaped: "__break__"},
    		{unescaped: "const", escaped: "__const__"},
    		{unescaped: "continue", escaped: "__continue__"},
    		{unescaped: "else", escaped: "__else__"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 10 22:05:55 UTC 2022
    - 6.9K bytes
    - Viewed (0)
Back to top