Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for isHex (0.13 sec)

  1. src/html/template/css.go

    		}
    		// https://www.w3.org/TR/css3-syntax/#SUBTOK-escape
    		// escape ::= unicode | '\' [#x20-#x7E#x80-#xD7FF#xE000-#xFFFD#x10000-#x10FFFF]
    		if isHex(s[1]) {
    			// https://www.w3.org/TR/css3-syntax/#SUBTOK-unicode
    			//   unicode ::= '\' [0-9a-fA-F]{1,6} wc?
    			j := 2
    			for j < len(s) && j < 7 && isHex(s[j]) {
    				j++
    			}
    			r := hexDecode(s[1:j])
    			if r > unicode.MaxRune {
    				r, j = r/16, j-1
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 02 19:38:18 UTC 2023
    - 7K bytes
    - Viewed (0)
  2. src/mime/mediatype.go

    	// Count %, check that they're well-formed.
    	percents := 0
    	for i := 0; i < len(s); {
    		if s[i] != '%' {
    			i++
    			continue
    		}
    		percents++
    		if i+2 >= len(s) || !ishex(s[i+1]) || !ishex(s[i+2]) {
    			s = s[i:]
    			if len(s) > 3 {
    				s = s[0:3]
    			}
    			return "", fmt.Errorf("mime: bogus characters after %%: %q", s)
    		}
    		i += 3
    	}
    	if percents == 0 {
    		return s, nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  3. src/html/template/url.go

    		// created by URI producers
    		case '-', '.', '_', '~':
    			continue
    		case '%':
    			// When normalizing do not re-encode valid escapes.
    			if norm && i+2 < len(s) && isHex(s[i+1]) && isHex(s[i+2]) {
    				continue
    			}
    		default:
    			// Unreserved according to RFC 3986 sec 2.3
    			if 'a' <= c && c <= 'z' {
    				continue
    			}
    			if 'A' <= c && c <= 'Z' {
    				continue
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 06 15:48:16 UTC 2022
    - 6.6K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/arch/x86/x86asm/plan9x.go

    		a := inst.Args[i]
    		if a == nil {
    			continue
    		}
    		args = append(args, plan9Arg(&inst, pc, symname, a))
    	}
    
    	var rep string
    	var last Prefix
    	for _, p := range inst.Prefix {
    		if p == 0 || p.IsREX() || p.IsVEX() {
    			break
    		}
    
    		switch {
    		// Don't show prefixes implied by the instruction text.
    		case p&0xFF00 == PrefixImplicit:
    			continue
    		// Only REP and REPN are recognized repeaters. Plan 9 syntax
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jul 12 20:38:21 UTC 2023
    - 7.2K bytes
    - Viewed (0)
Back to top