Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for isNumeric (0.07 sec)

  1. 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 Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Feb 25 20:31:19 UTC 2022
    - 20.2K bytes
    - Viewed (0)
  2. 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: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 24 16:44:05 UTC 2024
    - 35.3K bytes
    - Viewed (0)
  3. 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 Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 13.2K bytes
    - Viewed (0)
  4. 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: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Mon Jan 01 05:12:47 UTC 2018
    - 1.6K bytes
    - Viewed (0)
  5. 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: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Mar 21 08:00:02 UTC 2024
    - 5K bytes
    - Viewed (0)
  6. src/main/webapp/js/admin/plugins/form-validator/sanitize.js

    you include numeral.js (http://numeraljs.com/)');return a=numeral().unformat(a),a=numeral(a).format(c.attr("data-sanitize-number-format"))},strip:function(b,c){var d=c.attr("data-sanitize-strip")||"";return a.split(d,function(c){var d=new RegExp(a.isNumeric(c)?c:"\\"+c,"g");b=b.replace(d,"")}),b},escape:function(b,c){var d=c.valAttr("is-escaped"),e={"<":"__%AMP%__lt;",">":"__%AMP%__gt;","&":"__%AMP%__amp;","'":"__%AMP%__#8217;",'"':"__%AMP%__quot;"};return"yes"===d?b:(c.valAttr("is-escaped","yes"),...
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Mon Jan 01 05:12:47 UTC 2018
    - 2.7K bytes
    - Viewed (0)
  7. src/main/webapp/js/admin/popper.min.js.map

    e, this.state);\n  }\n}\n","/**\n * Tells if a given input is a number\n * @method\n * @memberof Popper.Utils\n * @param {*} input to check\n * @return {Boolean}\n */\nexport default function isNumeric(n) {\n  return n !== '' && !isNaN(parseFloat(n)) && isFinite(n);\n}\n","import isNumeric from './isNumeric';\n\n/**\n * Set the style to the given popper\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element - Element to apply the style to\n * @argument {Object} styles\n * Object with...
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sat Oct 26 01:49:09 UTC 2024
    - 120.9K bytes
    - Viewed (0)
  8. internal/s3select/sql/aggregation.go

    	if funcName != aggFnCount {
    		// All aggregation functions, except COUNT require a
    		// numeric argument.
    
    		// Here, we diverge from Amazon S3 behavior by
    		// inferring untyped values are numbers.
    		if !argVal.isNumeric() {
    			if i, ok := argVal.bytesToInt(); ok {
    				argVal.setInt(i)
    			} else if f, ok := argVal.bytesToFloat(); ok {
    				argVal.setFloat(f)
    			} else {
    				return errNonNumericArg(funcName)
    			}
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Dec 23 07:19:11 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  9. 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 Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 23 19:35:41 UTC 2024
    - 12K bytes
    - Viewed (0)
  10. 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: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 11.2K bytes
    - Viewed (0)
Back to top