Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for IsNumeric (0.29 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/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)
  5. 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)
  6. 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)
  7. src/encoding/asn1/marshal.go

    		}
    	}
    
    	return stringEncoder(s), nil
    }
    
    func makeNumericString(s string) (e encoder, err error) {
    	for i := 0; i < len(s); i++ {
    		if !isNumeric(s[i]) {
    			return nil, StructuralError{"NumericString contains invalid character"}
    		}
    	}
    
    	return stringEncoder(s), nil
    }
    
    func makeUTF8String(s string) encoder {
    	return stringEncoder(s)
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  8. src/go/types/expr.go

    		switch x.typ.(*Basic).kind {
    		case UntypedBool:
    			if !isBoolean(target) {
    				return nil, nil, InvalidUntypedConversion
    			}
    		case UntypedInt, UntypedRune, UntypedFloat, UntypedComplex:
    			if !isNumeric(target) {
    				return nil, nil, InvalidUntypedConversion
    			}
    		case UntypedString:
    			// Non-constant untyped string values are not permitted by the spec and
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 49.7K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/expr.go

    		switch x.typ.(*Basic).kind {
    		case UntypedBool:
    			if !isBoolean(target) {
    				return nil, nil, InvalidUntypedConversion
    			}
    		case UntypedInt, UntypedRune, UntypedFloat, UntypedComplex:
    			if !isNumeric(target) {
    				return nil, nil, InvalidUntypedConversion
    			}
    		case UntypedString:
    			// Non-constant untyped string values are not permitted by the spec and
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 51.7K bytes
    - Viewed (0)
  10. maven-api-impl/src/test/remote-repo/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar

    public static boolean isAlpha(String); public static boolean isWhitespace(String); public static boolean isAlphaSpace(String); public static boolean isAlphanumeric(String); public static boolean isAlphanumericSpace(String); public static boolean isNumeric(String); public static boolean isNumericSpace(String); public static String defaultString(Object); public static String defaultString(Object, String); public static String reverse(String); public static String reverseDelimitedStri(String, String);...
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu May 02 15:10:38 UTC 2024
    - 164.6K bytes
    - Viewed (0)
Back to top