Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 42 for IsNumeric (0.32 sec)

  1. src/go/types/basic.go

    const (
    	IsBoolean BasicInfo = 1 << iota
    	IsInteger
    	IsUnsigned
    	IsFloat
    	IsComplex
    	IsString
    	IsUntyped
    
    	IsOrdered   = IsInteger | IsFloat | IsString
    	IsNumeric   = IsInteger | IsFloat | IsComplex
    	IsConstType = IsBoolean | IsNumeric | IsString
    )
    
    // A Basic represents a basic type.
    type Basic struct {
    	kind BasicKind
    	info BasicInfo
    	name string
    }
    
    // Kind returns the kind of basic type b.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/basic.go

    const (
    	IsBoolean BasicInfo = 1 << iota
    	IsInteger
    	IsUnsigned
    	IsFloat
    	IsComplex
    	IsString
    	IsUntyped
    
    	IsOrdered   = IsInteger | IsFloat | IsString
    	IsNumeric   = IsInteger | IsFloat | IsComplex
    	IsConstType = IsBoolean | IsNumeric | IsString
    )
    
    // A Basic represents a basic type.
    type Basic struct {
    	kind BasicKind
    	info BasicInfo
    	name string
    }
    
    // Kind returns the kind of basic type b.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 01 22:17:50 UTC 2021
    - 1.5K bytes
    - Viewed (0)
  3. src/main/webapp/js/admin/plugins/form-validator/date.js

    ):"undefined"!=typeof e.dateFormat&&(f=e.dateFormat);var g=a.formUtils.parseDate(c,f);if(!g)return!1;var h=g[0],i=g[1],j=g[2],k=b(h,i,j),l=(d.valAttr("age-range")||"0-124").split("-");if(d.trigger("ageCalculated",[k]),2!==l.length||!a.isNumeric(l[0])||!a.isNumeric(l[1]))throw new Error("Date range format invalid");return k>=l[0]&&k<=l[1]},errorMessage:"",errorMessageKey:"badDate"})}(a)});...
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Mon Jan 01 05:12:47 UTC 2018
    - 1.6K bytes
    - Viewed (0)
  4. internal/s3select/sql/value.go

    	}
    
    	// Check array values
    	aArr, aOK := a.ToArray()
    	vArr, vOK := v.ToArray()
    	if aOK && vOK {
    		return arrayCompare(op, aArr, vArr)
    	}
    
    	isNumeric := v.isNumeric() && a.isNumeric()
    	if isNumeric {
    		intV, ok1i := v.ToInt()
    		intA, ok2i := a.ToInt()
    		if ok1i && ok2i {
    			return intCompare(op, intV, intA), nil
    		}
    
    		// If both values are numeric, then at least one is
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Feb 25 20:31:19 UTC 2022
    - 20.2K bytes
    - Viewed (0)
  5. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/TestDependency.groovy

            def s = n[0].split(":")
            if (s.length == 3) {
                this.group = s[0]
                this.name = s[1]
                this.version = s[2]
            } else if (s.length == 2) {
                if (StringUtils.isNumeric(s[1])) {
                    this.group = "org"
                    this.name = s[0]
                    this.version = s[1]
                } else {
                    this.group = s[0]
                    this.name = s[1]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2K bytes
    - Viewed (0)
  6. internal/s3select/sql/funceval.go

    	if v1.IsNull() || v2.IsNull() {
    		return v1, nil
    	}
    
    	err = inferTypesForCmp(v1, v2)
    	if err != nil {
    		return nil, err
    	}
    
    	atleastOneNumeric := v1.isNumeric() || v2.isNumeric()
    	bothNumeric := v1.isNumeric() && v2.isNumeric()
    	if atleastOneNumeric || !bothNumeric {
    		return v1, nil
    	}
    
    	if v1.SameTypeAs(*v2) {
    		return v1, nil
    	}
    
    	cmpResult, cmpErr := v1.compareOp(opEq, v2)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 13.2K bytes
    - Viewed (0)
  7. 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)
  8. logger/sql.go

    var convertibleTypes = []reflect.Type{reflect.TypeOf(time.Time{}), reflect.TypeOf(false), reflect.TypeOf([]byte{})}
    
    // RegEx matches only numeric values
    var numericPlaceholderRe = regexp.MustCompile(`\$\d+\$`)
    
    func isNumeric(k reflect.Kind) bool {
    	switch k {
    	case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
    		return true
    	case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
    		return true
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Thu Mar 21 08:00:02 UTC 2024
    - 5K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top