if (from != null)
{
// Add 1 to the passed in value so that it is of origin 1 to be compatible with LOCATE
args.add(from.add(integerLiteral));
}
NumericExpression locateExpr = new NumericExpression("LOCATE", args);
// Subtract 1 from the result of LOCATE to be consistent with Java strings
// TODO Would be nice to put this in parentheses
return new NumericExpression(locateExpr, ScalarExpression.OP_SUB, integerLiteral);
}