class StringLengthFunction extends BaseFEELFunction {

    public FEELFnResult<BigDecimal> invoke(@ParameterName("string") String string) {
        if ( string == null ) {
            return FEELFnResult.ofError(new InvalidParametersEvent(Severity.ERROR, "string", "cannot be null"));
        } else {
            return FEELFnResult.ofResult(EvalHelper.getBigDecimalOrNull(string.codePointCount(0, string.length())));
        }
    }

    public  StringLengthFunction();

}