Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 32 of 32 for lookupValue (0.16 sec)

  1. src/vendor/golang.org/x/net/idna/tables15.0.0.go

    	}
    	i := idnaIndex[c0]
    	if c0 < 0xE0 { // 2-byte UTF-8
    		return t.lookupValue(uint32(i), s[1])
    	}
    	i = idnaIndex[uint32(i)<<6+uint32(s[1])]
    	if c0 < 0xF0 { // 3-byte UTF-8
    		return t.lookupValue(uint32(i), s[2])
    	}
    	i = idnaIndex[uint32(i)<<6+uint32(s[2])]
    	if c0 < 0xF8 { // 4-byte UTF-8
    		return t.lookupValue(uint32(i), s[3])
    	}
    	return 0
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 297.4K bytes
    - Viewed (0)
  2. src/net/lookup.go

    type onlyValuesCtx struct {
    	context.Context
    	lookupValues context.Context
    }
    
    var _ context.Context = (*onlyValuesCtx)(nil)
    
    // Value performs a lookup if the original context hasn't expired.
    func (ovc *onlyValuesCtx) Value(key any) any {
    	select {
    	case <-ovc.lookupValues.Done():
    		return nil
    	default:
    		return ovc.lookupValues.Value(key)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:23:45 UTC 2024
    - 28.6K bytes
    - Viewed (0)
Back to top