Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for isHex (0.05 sec)

  1. src/cmd/compile/internal/syntax/scanner.go

    func isLetter(ch rune) bool  { return 'a' <= lower(ch) && lower(ch) <= 'z' || ch == '_' }
    func isDecimal(ch rune) bool { return '0' <= ch && ch <= '9' }
    func isHex(ch rune) bool     { return '0' <= ch && ch <= '9' || 'a' <= lower(ch) && lower(ch) <= 'f' }
    
    // digits accepts the sequence { digit | '_' }.
    // If base <= 10, digits accepts any decimal digit but records
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 28 18:17:41 UTC 2022
    - 17.1K bytes
    - Viewed (0)
  2. src/text/scanner/scanner.go

    		ch = s.next()
    	}
    	return ch
    }
    
    func lower(ch rune) rune     { return ('a' - 'A') | ch } // returns lower-case ch iff ch is ASCII letter
    func isDecimal(ch rune) bool { return '0' <= ch && ch <= '9' }
    func isHex(ch rune) bool     { return '0' <= ch && ch <= '9' || 'a' <= lower(ch) && lower(ch) <= 'f' }
    
    // digits accepts the sequence { digit | '_' } starting with ch0.
    // If base <= 10, digits accepts any decimal digit but records
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:57:51 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  3. src/net/http/httputil/reverseproxy.go

    	}
    	for i := 0; i < len(s); {
    		switch s[i] {
    		case ';':
    			return reencode(s)
    		case '%':
    			if i+2 >= len(s) || !ishex(s[i+1]) || !ishex(s[i+2]) {
    				return reencode(s)
    			}
    			i += 3
    		default:
    			i++
    		}
    	}
    	return s
    }
    
    func ishex(c byte) bool {
    	switch {
    	case '0' <= c && c <= '9':
    		return true
    	case 'a' <= c && c <= 'f':
    		return true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 27 23:37:42 UTC 2024
    - 24.9K bytes
    - Viewed (0)
  4. src/go/scanner/scanner.go

    	return 16 // larger than any legal digit val
    }
    
    func lower(ch rune) rune     { return ('a' - 'A') | ch } // returns lower-case ch iff ch is ASCII letter
    func isDecimal(ch rune) bool { return '0' <= ch && ch <= '9' }
    func isHex(ch rune) bool     { return '0' <= ch && ch <= '9' || 'a' <= lower(ch) && lower(ch) <= 'f' }
    
    // digits accepts the sequence { digit | '_' }.
    // If base <= 10, digits accepts any decimal digit but records
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 24.3K bytes
    - Viewed (0)
  5. src/net/url/url.go

    	// Count %, check that they're well-formed.
    	n := 0
    	hasPlus := false
    	for i := 0; i < len(s); {
    		switch s[i] {
    		case '%':
    			n++
    			if i+2 >= len(s) || !ishex(s[i+1]) || !ishex(s[i+2]) {
    				s = s[i:]
    				if len(s) > 3 {
    					s = s[:3]
    				}
    				return "", EscapeError(s)
    			}
    			// Per https://tools.ietf.org/html/rfc3986#page-21
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:53 UTC 2024
    - 36.1K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/arch/x86/x86asm/inst.go

    	PrefixVEX2Bytes Prefix = 0xC5 // Short form of vex prefix
    	PrefixVEX3Bytes Prefix = 0xC4 // Long form of vex prefix
    )
    
    // IsREX reports whether p is a REX prefix byte.
    func (p Prefix) IsREX() bool {
    	return p&0xF0 == PrefixREX
    }
    
    func (p Prefix) IsVEX() bool {
    	return p&0xFF == PrefixVEX2Bytes || p&0xFF == PrefixVEX3Bytes
    }
    
    func (p Prefix) String() string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/arch/x86/x86asm/intel.go

    		for i, p := range inst.Prefix {
    			switch p &^ PrefixIgnored {
    			case PrefixData16, PrefixData32, PrefixCS, PrefixDS, PrefixES, PrefixSS:
    				inst.Prefix[i] |= PrefixImplicit
    			}
    			if p.IsREX() {
    				inst.Prefix[i] |= PrefixImplicit
    			}
    			if p.IsVEX() {
    				if p == PrefixVEX3Bytes {
    					inst.Prefix[i+2] |= PrefixImplicit
    				}
    				inst.Prefix[i] |= PrefixImplicit
    				inst.Prefix[i+1] |= PrefixImplicit
    			}
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 29 22:23:32 UTC 2017
    - 11.7K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/arch/x86/x86asm/gnu.go

    			implicitData = true
    		}
    	}
    	for _, p := range inst.Prefix {
    		if p == 0 || p.IsVEX() {
    			break
    		}
    		if p&PrefixImplicit != 0 {
    			continue
    		}
    		switch p &^ (PrefixIgnored | PrefixInvalid) {
    		default:
    			if p.IsREX() {
    				if p&0xFF == PrefixREX {
    					prefix += "rex "
    				} else {
    					prefix += "rex." + p.String()[4:] + " "
    				}
    				break
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 21.4K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/arch/x86/x86asm/decode.go

    			for j := 0; j < n; j++ {
    				prefix := Prefix(decoder[pc+2*j])
    				if prefix.IsREX() {
    					rexUsed |= prefix
    					if rex&prefix == prefix {
    						pc = int(decoder[pc+2*j+1])
    						continue Decode
    					}
    					continue
    				}
    				ok := false
    				if prefix == 0 {
    					ok = true
    				} else if prefix.IsREX() {
    					rexUsed |= prefix
    					if rex&prefix == prefix {
    						ok = true
    					}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 10 18:59:52 UTC 2023
    - 45.1K bytes
    - Viewed (0)
Back to top