Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for toInteger (0.04 sec)

  1. cmd/postpolicyform.go

    		return ""
    	}
    }
    
    // toLowerString - safely convert interface to lower string
    func toLowerString(val interface{}) string {
    	return strings.ToLower(toString(val))
    }
    
    // toInteger _ Safely convert interface to integer without causing panic.
    func toInteger(val interface{}) (int64, error) {
    	switch v := val.(type) {
    	case float64:
    		return int64(v), nil
    	case int64:
    		return v, nil
    	case int:
    		return int64(v), nil
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 23 19:35:41 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/mylasta/direction/FessProp.java

                    if (v.length == 1) {
                        final int x = DfTypeUtil.toInteger(v[0].trim());
                        return new Pair<>(x, x);
                    }
                    if (v.length == 2) {
                        final int x = DfTypeUtil.toInteger(v[0].trim());
                        final int y = DfTypeUtil.toInteger(v[1].trim());
                        return new Pair<>(x, y);
                    }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sat Oct 12 01:54:15 UTC 2024
    - 87.2K bytes
    - Viewed (0)
Back to top