Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 107 for escapers (0.23 sec)

  1. src/html/template/template.go

    	}
    	t.nameSpace.mu.Lock()
    	defer t.nameSpace.mu.Unlock()
    	if t.nameSpace.escaped {
    		return fmt.Errorf("html/template: cannot Parse after Execute")
    	}
    	return nil
    }
    
    // escape escapes all associated templates.
    func (t *Template) escape() error {
    	t.nameSpace.mu.Lock()
    	defer t.nameSpace.mu.Unlock()
    	t.nameSpace.escaped = true
    	if t.escapeErr == nil {
    		if t.Tree == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 21:00:46 UTC 2024
    - 17K bytes
    - Viewed (0)
  2. src/html/template/js_test.go

    	}
    
    	for _, test := range tests {
    		if s := test.escaper(input); s != test.escaped {
    			t.Errorf("%s once: want\n\t%q\ngot\n\t%q", test.name, test.escaped, s)
    			continue
    		}
    
    		// Escape it rune by rune to make sure that any
    		// fast-path checking does not break escaping.
    		var buf strings.Builder
    		for _, c := range input {
    			buf.WriteString(test.escaper(string(c)))
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 27 02:20:11 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  3. src/net/url/url.go

    			// everything, so escape nothing.
    			return false
    		}
    	}
    
    	if mode == encodeFragment {
    		// RFC 3986 §2.2 allows not escaping sub-delims. A subset of sub-delims are
    		// included in reserved from RFC 2396 §2.2. The remaining sub-delims do not
    		// need to be escaped. To minimize potential breakage, we apply two restrictions:
    		// (1) we always escape sub-delims outside of the fragment, and (2) we always
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:53 UTC 2024
    - 36.1K bytes
    - Viewed (0)
  4. 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)
  5. src/cmd/vendor/golang.org/x/mod/module/module.go

    // UnescapePath returns the module path for the given escaped path.
    // It fails if the escaped path is invalid or describes an invalid path.
    func UnescapePath(escaped string) (path string, err error) {
    	path, ok := unescapeString(escaped)
    	if !ok {
    		return "", fmt.Errorf("invalid escaped module path %q", escaped)
    	}
    	if err := CheckPath(path); err != nil {
    		return "", fmt.Errorf("invalid escaped module path %q: %v", escaped, err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 20:17:07 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  6. src/html/template/js.go

    		return nil
    	}
    
    	v := reflect.ValueOf(a)
    	for !v.Type().Implements(jsonMarshalType) && v.Kind() == reflect.Pointer && !v.IsNil() {
    		v = v.Elem()
    	}
    	return v.Interface()
    }
    
    // jsValEscaper escapes its inputs to a JS Expression (section 11.14) that has
    // neither side-effects nor free variables outside (NaN, Infinity).
    func jsValEscaper(args ...any) string {
    	var a any
    	if len(args) == 1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  7. src/internal/reflectlite/value.go

    //
    //go:noescape
    func typedmemmove(t *abi.Type, dst, src unsafe.Pointer)
    
    // Dummy annotation marking that the value x escapes,
    // for use in cases where the reflect code is so clever that
    // the compiler cannot follow.
    func escapes(x any) {
    	if dummy.b {
    		dummy.x = x
    	}
    }
    
    var dummy struct {
    	b bool
    	x any
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:01:54 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  8. src/html/template/transition.go

    					state: stateError,
    					err:   errorf(ErrPartialEscape, nil, 0, "unfinished escape sequence in JS string: %q", s),
    				}, len(s)
    			}
    		case '[':
    			inCharset = true
    		case ']':
    			inCharset = false
    		case '/':
    			// If "</script" appears in a regex literal, the '/' should not
    			// close the regex literal, and it will later be escaped to
    			// "\x3C/script" in escapeText.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 19:54:31 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  9. common-protos/k8s.io/api/admissionregistration/v1alpha1/generated.proto

      // Accessible property names are escaped according to the following rules when accessed in the expression:
      // - '__' escapes to '__underscores__'
      // - '.' escapes to '__dot__'
      // - '-' escapes to '__dash__'
      // - '/' escapes to '__slash__'
      // - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 25.7K bytes
    - Viewed (0)
  10. src/encoding/xml/xml.go

    	escQuot = []byte("&#34;") // shorter than "&quot;"
    	escApos = []byte("&#39;") // shorter than "&apos;"
    	escAmp  = []byte("&amp;")
    	escLT   = []byte("&lt;")
    	escGT   = []byte("&gt;")
    	escTab  = []byte("&#x9;")
    	escNL   = []byte("&#xA;")
    	escCR   = []byte("&#xD;")
    	escFFFD = []byte("\uFFFD") // Unicode replacement character
    )
    
    // EscapeText writes to w the properly escaped XML equivalent
    // of the plain text data s.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 18:46:41 UTC 2024
    - 47.3K bytes
    - Viewed (0)
Back to top