Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for toInteger (0.14 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)
  3. src/test/java/org/codelibs/fess/query/TermQueryCommandTest.java

                    return DfTypeUtil.toBigDecimal(get(propertyKey));
                }
    
                @Override
                public Integer getAsInteger(String propertyKey) {
                    return DfTypeUtil.toInteger(get(propertyKey));
                }
    
                @Override
                public String getQueryDefaultQueryType() {
                    return queryType;
                }
            });
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Jul 11 08:26:36 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/helper/QueryHelperTest.java

                    return DfTypeUtil.toBigDecimal(get(propertyKey));
                }
    
                @Override
                public Integer getAsInteger(String propertyKey) {
                    return DfTypeUtil.toInteger(get(propertyKey));
                }
    
                @Override
                public String getQueryDefaultQueryType() {
                    return queryType;
                }
            });
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Jul 11 08:26:36 UTC 2024
    - 39.8K bytes
    - Viewed (0)
Back to top