Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for IsNumeric (0.45 sec)

  1. android/guava-tests/test/com/google/common/net/InetAddressesTest.java

                InetAddresses.isInetAddress(withScopeId));
            Inet6Address parsed;
            boolean isNumeric = scopeId.matches("\\d+");
            try {
              parsed = (Inet6Address) InetAddresses.forString(withScopeId);
            } catch (IllegalArgumentException e) {
              if (!isNumeric) {
                // Android doesn't recognize %interface as valid
                continue;
              }
              throw e;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 24 16:44:05 UTC 2024
    - 35.3K bytes
    - Viewed (0)
  2. src/go/types/predicates.go

    func isUnsigned(t Type) bool       { return isBasic(t, IsUnsigned) }
    func isFloat(t Type) bool          { return isBasic(t, IsFloat) }
    func isComplex(t Type) bool        { return isBasic(t, IsComplex) }
    func isNumeric(t Type) bool        { return isBasic(t, IsNumeric) }
    func isString(t Type) bool         { return isBasic(t, IsString) }
    func isIntegerOrFloat(t Type) bool { return isBasic(t, IsInteger|IsFloat) }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/predicates.go

    func isUnsigned(t Type) bool       { return isBasic(t, IsUnsigned) }
    func isFloat(t Type) bool          { return isBasic(t, IsFloat) }
    func isComplex(t Type) bool        { return isBasic(t, IsComplex) }
    func isNumeric(t Type) bool        { return isBasic(t, IsNumeric) }
    func isString(t Type) bool         { return isBasic(t, IsString) }
    func isIntegerOrFloat(t Type) bool { return isBasic(t, IsInteger|IsFloat) }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  4. src/encoding/asn1/asn1.go

    func parseNumericString(bytes []byte) (ret string, err error) {
    	for _, b := range bytes {
    		if !isNumeric(b) {
    			return "", SyntaxError{"NumericString contains invalid character"}
    		}
    	}
    	return string(bytes), nil
    }
    
    // isNumeric reports whether the given b is in the ASN.1 NumericString set.
    func isNumeric(b byte) bool {
    	return '0' <= b && b <= '9' ||
    		b == ' '
    }
    
    // PrintableString
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:04:28 UTC 2023
    - 31.8K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/-HostnamesCommon.kt

    import okhttp3.internal.idn.Punycode
    import okio.Buffer
    
    /**
     * Quick and dirty pattern to differentiate IP addresses from hostnames. This is an approximation
     * of Android's private InetAddress#isNumeric API.
     *
     * This matches IPv6 addresses as a hex string containing at least one colon, and possibly
     * including dots after the first colon. It matches IPv4 addresses as strings containing only
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/internal/analysisinternal/analysis.go

    	// Named and Alias, it also removes TypeParam.
    	if n, ok := under.(*types.Named); ok {
    		under = n.Underlying()
    	}
    	switch under := under.(type) {
    	case *types.Basic:
    		switch {
    		case under.Info()&types.IsNumeric != 0:
    			return &ast.BasicLit{Kind: token.INT, Value: "0"}
    		case under.Info()&types.IsBoolean != 0:
    			return &ast.Ident{Name: "false"}
    		case under.Info()&types.IsString != 0:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  7. src/go/types/builtins.go

    			//    same type to succeed (this will result in an error
    			//    because shifts of floats are not permitted)
    			if x.mode == constant_ && y.mode == constant_ {
    				toFloat := func(x *operand) {
    					if isNumeric(x.typ) && constant.Sign(constant.Imag(x.val)) == 0 {
    						x.typ = Typ[UntypedFloat]
    					}
    				}
    				toFloat(x)
    				toFloat(y)
    			} else {
    				check.convertUntyped(x, Typ[Float64])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 27.2K bytes
    - Viewed (0)
  8. internal/s3select/sql/evaluate.go

    		return e.Primary.evalNode(r, tableAlias)
    	}
    
    	v, err := e.Negated.Term.evalNode(r, tableAlias)
    	if err != nil {
    		return nil, err
    	}
    
    	inferTypeForArithOp(v)
    	v.negate()
    	if v.isNumeric() {
    		return v, nil
    	}
    	return nil, errArithMismatchedTypes
    }
    
    func (e *JSONPath) evalNode(r Record, tableAlias string) (*Value, error) {
    	alias := tableAlias
    	if tableAlias == "" {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Dec 23 07:19:11 UTC 2023
    - 12K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/builtins.go

    			//    same type to succeed (this will result in an error
    			//    because shifts of floats are not permitted)
    			if x.mode == constant_ && y.mode == constant_ {
    				toFloat := func(x *operand) {
    					if isNumeric(x.typ) && constant.Sign(constant.Imag(x.val)) == 0 {
    						x.typ = Typ[UntypedFloat]
    					}
    				}
    				toFloat(x)
    				toFloat(y)
    			} else {
    				check.convertUntyped(x, Typ[Float64])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/assignments.go

    	for i, t := range list {
    		var s string
    		switch {
    		case t == nil:
    			fallthrough // should not happen but be cautious
    		case !isValid(t):
    			s = "unknown type"
    		case isUntyped(t):
    			if isNumeric(t) {
    				// Do not imply a specific type requirement:
    				// "have number, want float64" is better than
    				// "have untyped int, want float64" or
    				// "have int, want float64".
    				s = "number"
    			} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 23 21:21:43 UTC 2024
    - 16.4K bytes
    - Viewed (0)
Back to top