Revision 44053

View differences:

trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/java/org/gvsig/expressionevaluator/impl/function/string/LengthFunction.java
7 7
public class LengthFunction extends AbstractFunction {
8 8

  
9 9
    public LengthFunction() {
10
        super("String", "LEGTH", Range.is(1));
10
        super("String", "LENGTH", Range.is(1));
11 11
    }
12 12

  
13 13
    @Override
trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/java/org/gvsig/expressionevaluator/impl/DefaultExpressionBuilder.java
1424 1424
    public Function zero() {
1425 1425
       return function("zero");
1426 1426
    }
1427

  
1427
    
1428
    @Override
1429
    public Function chr(Value num) {
1430
       return function("chr", num);
1431
    }
1428 1432
}
trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/java/org/gvsig/expressionevaluator/impl/symboltable/SQLSymbolTable.java
10 10
import org.gvsig.expressionevaluator.impl.function.numeric.ATanFunction;
11 11
import org.gvsig.expressionevaluator.impl.function.numeric.AbsFunction;
12 12
import org.gvsig.expressionevaluator.impl.function.numeric.BitAndFunction;
13
import org.gvsig.expressionevaluator.impl.function.numeric.BitGetFunction;
13 14
import org.gvsig.expressionevaluator.impl.function.numeric.BitOrFunction;
14 15
import org.gvsig.expressionevaluator.impl.function.numeric.BitXorFunction;
15 16
import org.gvsig.expressionevaluator.impl.function.numeric.CeilFunction;
......
113 114
        this.addFunction(new BitAndFunction());
114 115
        this.addFunction(new BitOrFunction());
115 116
        this.addFunction(new BitXorFunction());
117
        this.addFunction(new BitGetFunction());
116 118
        this.addFunction(new CeilFunction());
117 119
        this.addFunction(new CosFunction());
118 120
        this.addFunction(new CoshFunction());
......
134 136
        this.addFunction(new TanFunction());
135 137
        this.addFunction(new TanhFunction());
136 138
        this.addFunction(new ZeroFunction());
137
        this.addFunction(new LogFunction());
138 139
        
139 140
        this.addFunction(new AsciiFunction());
140 141
        this.addFunction(new CharFunction());
trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/ATAN.json
1
{
2
    "name": "ATAN",
3
    "group": "Numeric",
4
    "template": "ATAN({{a}})",
5
    "args": [
6
        "a - an angle, in radians."
7
    ],
8
    "description": ["Returns the arc tangent of a number."],
9
    "returnType": "Double"
10
}
trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/COT.json
1
{
2
    "name": "COT",
3
    "group": "Numeric",
4
    "template": "COT({{a}})",
5
    "args": [
6
        "a - an angle, in radians."
7
    ],
8
    "description": [
9
      "Returns the hyperbolic cosine of a double value. The hyperbolic cosine of x is defined to be (ex + e-x)/2 where e is Euler's number.",
10
      "Special cases:",
11
      "- If the argument is NaN, then the result is NaN.",
12
      "- If the argument is infinite, then the result is positive infinity.",
13
      "- If the argument is zero, then the result is 1.0.",
14
      "The computed result must be within 2.5 ulps of the exact result."
15
      ] ,
16
    "returnType": "Double"
17
}
trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/RPAD.json
1
{
2
    "name": "RPAD",
3
    "group": "String",
4
    "template": "RPAD({{a}})",
5
    "args": [
6
        "value whose arc tangent is to be returned"
7
    ],
8
    "description": "Right pad the string to the specified length. If the length is shorter than the string, it will be truncated. If the padding string is not set, spaces will be used. Example: RPAD(TEXT, 10, '-')",
9
    "returnType": "String"
10
}
trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/SQRT.json
1
{
2
    "name": "SQRT",
3
    "group": "Numeric",
4
    "template": "SQRT({{number}})",
5
    "args": [
6
        "value whose arc tangent is to be returned"
7
    ],
8
    "description": "Returns the arc cosine of a value; the returned angle is in the range 0.0 through pi.",
9
    "returnType": "Double"
10
}
trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/SIN.json
1
{
2
    "name": "SIN",
3
    "group": "Numeric",
4
    "template": "SIN({{a}})",
5
    "args": [
6
        "a - an angle, in radians."
7
    ],
8
    "description": "Returns the sin value.",
9
    "returnType": "Double"
10
}
trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/SPACE.json
1
{
2
    "name": "SPACE",
3
    "group": "String",
4
    "template": "SPACE({{number}})",
5
    "args": [
6
        "number - The number of spaces to be returned"
7
    ],
8
    "description": "Returns a string consisting of a number of spaces. Example: SPACE(80)",
9
    "returnType": "String"
10
}
trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/EXP.json
1
{
2
    "name": "EXP",
3
    "group": "Numeric",
4
    "template": "EXP({{a}})",
5
    "args": [
6
        "value whose arc tangent is to be returned"
7
    ],
8
    "description": "Returns the arc cosine of a value; the returned angle is in the range 0.0 through pi.",
9
    "returnType": "Double"
10
}
trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/BITAND.json
1
{
2
    "name": "BITAND",
3
    "group": "Numeric",
4
    "template": "BITAND({{expr1}}, expr2)",
5
    "args": [
6
      "expr1 - the fisrt argument",
7
      "expr2 - the second argument"
8
    ],
9
    "description": ["The BITAND function treats its inputs and its output as vectors of bits; the output is the bitwise AND of the inputs.",
10
        "The types of expr1 and expr2 are INTEGER or LONG, and the result is of type INTEGER or LONG.",
11
        "If the types of expr1 or expr2 are not INTEGER or LONG a error is raised."
12
      ],
13
    "returnType": "Long"
14
}
trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/ABS.json
1
{
2
    "name": "ABS",
3
    "group": "Numeric",
4
    "template": "ABS({{number}})",
5
    "args": [
6
        "number - numeric value"
7
    ],
8
    "description": "Returns the absolute value of a number.",
9
    "returnType": "Double"
10
}
trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/POW.json
1
{
2
    "name": "POW",
3
    "group": "Numeric",
4
    "template": "POW({{number}}, exp)",
5
    "args": [
6
        "number - value",
7
        "exp - exponent value"
8
    ],
9
    "description": "Returns the exponent value to a number",
10
    "returnType": "Double"
11
}
trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/BITXOR.json
1
{
2
    "name": "BITXOR",
3
    "group": "Numeric",
4
    "template": "BITXOR({{expr1}}, expr2)",
5
    "args": [
6
      "expr1 - the fisrt argument",
7
      "expr2 - the second argument"
8
    ],
9
    "description": [
10
      "The BITXOR function treats its inputs and its output as vectors of bits; the output is the bitwise XOR of the inputs.",
11
      "The types of expr1 and expr2 are INTEGER or LONG, and the result is of type INTEGER or LONG.",
12
      "If the types of expr1 or expr2 are not INTEGER or LONG a error is raised."
13
    ],
14
        "returnType": "Long"
15
}
trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/PI.json
1
{
2
    "name": "PI",
3
    "group": "Numeric",
4
    "template": "PI()",
5
    "args": [
6
        ""
7
    ],
8
    "description": "Returns pi value.",
9
    "returnType": "Double"
10
}
trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/CEIL.json
1
{
2
    "name": "CEIL",
3
    "group": "Numeric",
4
    "template": "CEIL({{number}})",
5
    "args": [
6
        "number - numerica value"
7
    ],
8
    "description": [
9
            "Returns the smallest (closest to negative infinity) double value that is greater than or equal to the argument and is equal to a mathematical integer. Special cases:\n",
10
            "- If the argument value is already equal to a mathematical integer, then the result is the same as the argument.",
11
            "- If the argument is NaN or an infinity or positive zero or negative zero, then the result is the same as the argument.",
12
            "- If the argument value is less than zero but greater than -1.0, then the result is negative zero.",
13
            "Note that the value of Math.ceil(x) is exactly the value of -Math.floor(-x)."
14
          ],
15
    "returnType": "Double"
16
}
trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/RIGHT.json
1
{
2
    "name": "RIGHT",
3
    "group": "String",
4
    "template": "RIGHT({{string}}, number_of_chars)",
5
    "args": [
6
        "string - The string to extract from",
7
        "number_of_chars - The number of characters to extract"
8
    ],
9
    "description": "Returns the rightmost number of characters. Example: RIGHT(NAME, 3)",
10
    "returnType": "String"
11
}
trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/DEGREES.json
1
{
2
    "name": "DEGREES",
3
    "group": "Numeric",
4
    "template": "DEGREES({{a}})",
5
    "args": [
6
        "value whose arc tangent is to be returned"
7
    ],
8
    "description": "Returns the arc cosine of a value; the returned angle is in the range 0.0 through pi.",
9
    "returnType": "Double"
10
}
trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/BITGET.json
1
{
2
    "name": "BITGET",
3
    "group": "Numeric",
4
    "template": "BITGET({{bits}}, nbit)",
5
    "args": [
6
      "bits - a bit set",
7
      "nbit - bit to check"
8
    ],
9
    "description": ["Returns true if and only if the first parameter has a bit set ",
10
        " in the position specified by the second parameter. ",
11
        "This method returns a boolean. ",
12
        "The second parameter is zero-indexed; the least significant ",
13
        "it has position 0"
14
      ],
15
    "returnType": "Boolean"
16
}
trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/ZERO.json
1
{
2
    "name": "ZERO",
3
    "group": "Numeric",
4
    "template": "ZERO()",
5
    "args": [
6
        ""
7
    ],
8
    "description": "Returns the zero value.",
9
    "returnType": "Double"
10
}
trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/REPEAT.json
1
{
2
    "name": "REPEAT",
3
    "group": "String",
4
    "template": "REPEAT({{string}}, number)",
5
    "args": [
6
        "string - The string to repeat",
7
        "number - The number of times to repeat the string"
8
    ],
9
    "description": "Returns a string repeated some number of times. Example: REPEAT(NAME || ' ', 10)",
10
    "returnType": "String"
11
}
trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/SUBSTRING.json
1
{
2
    "name": "SUBSTR",
3
    "group": "String",
4
    "template": "SUBSTR({{string}}, start, length)",
5
    "args": [
6
        "string - The string to extract from",
7
        "start - The start position.",
8
        "lenght - The number of characters to extract."
9
    ],
10
    "description": "Returns a substring of a string starting at a position. If the start index is negative, then the start index is relative to the end of the string. The length is optional. Also supported is: SUBSTRING(string [FROM start] [FOR length]). Example: SUBSTR('[Hello]', 2, 5); SUBSTR('Hello World', -5);",
11
    "returnType": "String"
12
}
trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/LENGHT.json
1
{
2
    "name": "LENGTH",
3
    "group": "String",
4
    "template": "LENGTH({{string}})",
5
    "args": [
6
        "string - string to return the length for"
7
    ],
8
    "description": "Returns the number of characters in a string. This method returns a long. For BLOB, CLOB, BYTES and JAVA_OBJECT, the precision is used.
9

  
10
Example:
11

  
12
LENGTH(NAME)",
13
    "returnType": "Integer"
14
}
trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/FLOOR.json
1
{
2
    "name": "FLOOR",
3
    "group": "Numeric",
4
    "template": "FLOOR({{a}})",
5
    "args": [
6
        "value whose arc tangent is to be returned"
7
    ],
8
    "description": "Returns the arc cosine of a value; the returned angle is in the range 0.0 through pi.",
9
    "returnType": "Double"
10
}
trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/LOG10.json
1
{
2
    "name": "LOG10",
3
    "group": "Numeric",
4
    "template": "LOG10({{a}})",
5
    "args": [
6
        "value whose arc tangent is to be returned"
7
    ],
8
    "description": "Returns the arc cosine of a value; the returned angle is in the range 0.0 through pi.",
9
    "returnType": "Double"
10
}
trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/TAN.json
1
{
2
    "name": "TAN",
3
    "group": "Numeric",
4
    "template": "TAN({{a}})",
5
    "args": [
6
        "a - an angle, in radians."
7
    ],
8
    "description": "Returns the tan value.",
9
    "returnType": "Double"
10
}
trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/COS.json
1
{
2
    "name": "COS",
3
    "group": "Numeric",
4
    "template": "COS({{a}})",
5
    "args": [
6
        "a - an angle, in radians."
7
    ],
8
    "description": [
9
      "Returns the trigonometric cosine of an angle. Special cases:",
10
      "- If the argument is NaN or an infinity, then the result is NaN.",
11
      "The computed result must be within 1 ulp of the exact result. Results must be semi-monotonic."
12
      ],
13
    "returnType": "Double"
14
}
trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/RAND.json
1
{
2
    "name": "RAND",
3
    "group": "Numeric",
4
    "template": "RAND({{number}})",
5
    "args": [
6
        "value whose arc tangent is to be returned"
7
    ],
8
    "description": "Returns the arc cosine of a value; the returned angle is in the range 0.0 through pi.",
9
    "returnType": "Double"
10
}
trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/LTRIM.json
1
{
2
    "name": "LTRIM",
3
    "group": "String",
4
    "template": "LTRIM({{string}})",
5
    "args": [
6
        "string - The string to remove leading spaces from"
7
    ],
8
    "description": "Removes all leading spaces from a string. Example: LTRIM(NAME) ",
9
    "returnType": "String"
10
}
trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/ROUND.json
1
{
2
    "name": "ROUND",
3
    "group": "Numeric",
4
    "template": "ROUND({{number}})",
5
    "args": [
6
        "value whose arc tangent is to be returned"
7
    ],
8
    "description": "Returns the arc cosine of a value; the returned angle is in the range 0.0 through pi.",
9
    "returnType": "Double"
10
}
trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/LOWER.json
1
{
2
    "name": "LOWER",
3
    "group": "String",
4
    "template": "LOWER({{string}})",
5
    "args": [
6
        "string - The string to convert"
7
    ],
8
    "description": "Converts a string to lowercase. Example:LOWER(NAME)",
9
    "returnType": "String"
10
}
trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/LEFT.json
1
{
2
    "name": "LEFT",
3
    "group": "String",
4
    "template": "LEFT({{string}}, len)",
5
    "args": [
6
        "string - The string to extract from",
7
        "len - Number of characters to extract. If the number exceeds the number of characters in string, it returns string"
8
    ],
9
    "description": "Returns the leftmost number of characters. Example: LEFT(NAME, 3)",
10
    "returnType": "String"
11
}
trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/ASIN.json
1
{
2
    "name": "ASIN",
3
    "group": "Numeric",
4
    "template": "ASIN({{a}})",
5
    "args": [
6
        "a - an angle, in radians."
7
    ],
8
    "description": ["The ASIN() function returns the arc sine of a number.",
9
      "The specified number must be between -1 to 1, otherwise this function returns NULL. "
10
      ],
11
    "returnType": "Double"
12
}
trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/TANH.json
1
{
2
    "name": "TANH",
3
    "group": "Numeric",
4
    "template": "TANH({{a}})",
5
    "args": [
6
        "a - an angle, in radians."
7
    ],
8
    "description": "Returns the arc cosine of a value; the returned angle is in the range 0.0 through pi.",
9
    "returnType": "Double"
10
}
trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/UPPER.json
1
{
2
    "name": "UPPER",
3
    "group": "String",
4
    "template": "UPPER({{string}})",
5
    "args": [
6
        "string - The string to convert"
7
    ],
8
    "description": "Converts a string to uppercase. Example: UPPER(NAME)",
9
    "returnType": "String"
10
}
trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/COSH.json
1
{
2
    "name": "COSH",
3
    "group": "Numeric",
4
    "template": "COSH({{a}})",
5
    "args": [
6
        "a - The number whose hyperbolic cosine is to be returned."
7
    ],
8
    "description": [
9
      "Returns the hyperbolic cosine of a double value. The hyperbolic cosine of x is defined to be (ex + e-x)/2 where e is Euler's number.",
10
      "Special cases:",
11
      "- If the argument is NaN, then the result is NaN.",
12
      "- If the argument is infinite, then the result is positive infinity.",
13
      "- If the argument is zero, then the result is 1.0.",
14
      "The computed result must be within 2.5 ulps of the exact result."
15
      ] ,
16
    "returnType": "Double"
17
}
trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/RTRIM.json
1
{
2
    "name": "RTRIM",
3
    "group": "String",
4
    "template": "RTRIM({{string}})",
5
    "args": [
6
        "string - The string to remove trailing spaces from"
7
    ],
8
    "description": "Removes all trailing spaces from a string. Example: RTRIM(NAME)",
9
    "returnType": "String"
10
}
trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/SIGN.json
1
{
2
    "name": "SIGN",
3
    "group": "Numeric",
4
    "template": "SIGN({{a}})",
5
    "args": [
6
        "value whose arc tangent is to be returned"
7
    ],
8
    "description": "Returns the arc cosine of a value; the returned angle is in the range 0.0 through pi.",
9
    "returnType": "Double"
10
}
trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/SINH.json
1
{
2
    "name": "SINH",
3
    "group": "Numeric",
4
    "template": "SINH({{a}})",
5
    "args": [
6
        "a - an angle, in radians."
7
    ],
8
    "description": "Returns the arc cosine of a value; the returned angle is in the range 0.0 through pi.",
9
    "returnType": "Double"
10
}
trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/POSITION.json
1
{
2
    "name": "POSITION",
3
    "group": "String",
4
    "template": "POSITION({{substring}}, string)",
5
    "args": [
6
        "substring - The substring to search for in string",
7
        "string - The original string that will be searched"
8
    ],
9
    "description": "Returns the location of a search string in a string. See also LOCATE. Example: POSITION('.', NAME)",
10
    "returnType": "String"
11
}
trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/LOCATE.json
1
{
2
    "name": "LOCATE",
3
    "group": "String",
4
    "template": "LOCATE({{substring}}, string, start)",
5
    "args": [
6
        "substring - The substring to search for in string",
7
        "string - The string that will be searched",
8
        "start - The starting position for the search. Position 1 is default"
9
    ],
10
    "description": "Returns the location of a search string in a string. If a start position is used, the characters before it are ignored. If position is negative, the rightmost location is returned. 0 is returned if the search string is not found.
11

  
12
Example:
13

  
14
LOCATE('.', NAME)",
15
    "returnType": "Double"
16
}
trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/REPLACE.json
1
{
2
    "name": "REPLACE",
3
    "group": "String",
4
    "template": "REPLACE({{string}}, old_string, new_string)",
5
    "args": [
6
        "string - The original string",
7
        "old_string - The string to be replaced",
8
        "new_string - The new replacement string"
9
    ],
10
    "description": "Replaces all occurrences of a search string in a text with another string. If no replacement is specified, the search string is removed from the original string. If any parameter is null, the result is null. Example: REPLACE(NAME, ' ')",
11
    "returnType": "String"
12
}
trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/TRIM.json
1
{
2
    "name": "TRIM",
3
    "group": "String",
4
    "template": "TRIM({{string}})",
5
    "args": [
6
        "string - The string to remove spaces or characters from"
7
    ],
8
    "description": "Removes all leading spaces, trailing spaces, or spaces at both ends, from a string. Other characters can be removed as well. Example: TRIM(BOTH '_' FROM NAME)",
9
    "returnType": "String"
10
}
trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/BITOR.json
1
{
2
    "name": "BITOR",
3
    "group": "Numeric",
4
    "template": "BITOR({{expr1}}, expr2)",
5
    "args": [
6
      "expr1 - the fisrt argument",
7
      "expr2 - the second argument"
8
    ],
9
    "description": [
10
      "The BITOR function treats its inputs and its output as vectors of bits; the output is the bitwise OR of the inputs.",
11
      "The types of expr1 and expr2 are INTEGER or LONG, and the result is of type INTEGER or LONG.",
12
      "If the types of expr1 or expr2 are not INTEGER or LONG a error is raised.",
13
    ],
14
        "returnType": "Long"
15
}
trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/LPAD.json
1
{
2
    "name": "LPAD",
3
    "group": "String",
4
    "template": "LPAD({{string}}, len, padstr)",
5
    "args": [
6
        "string - The original string.",
7
        "len - The length of the string after it has been left-padded",
8
        "padstr - The string to left-pad to string"
9
    ],
10
    "description": "Left pad the string to the specified length. If the length is shorter than the string, it will be truncated at the end. If the padding string is not set, spaces will be used. Example: LPAD(AMOUNT, 10, '*') ",
11
    "returnType": "String"
12
}
trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/RADIANS.json
1
{
2
    "name": "RADIANS",
3
    "group": "Numeric",
4
    "template": "RADIANS({{a}})",
5
    "args": [
6
        "value whose arc tangent is to be returned"
7
    ],
8
    "description": "Returns the arc cosine of a value; the returned angle is in the range 0.0 through pi.",
9
    "returnType": "Double"
10
}
trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/LOG.json
1
{
2
    "name": "LOG",
3
    "group": "Numeric",
4
    "template": "LOG({{a}})",
5
    "args": [
6
        "value whose arc tangent is to be returned"
7
    ],
8
    "description": "Returns the arc cosine of a value; the returned angle is in the range 0.0 through pi.",
9
    "returnType": "Double"
10
}

Also available in: Unified diff