class StringFunctions {

    @Description("Suffix starting at given index")
    @ScalarFunction(value = "substring", alias = "substr")
    @LiteralParameters("x")
    @SqlType("varchar(x)")
    public static Slice charSubstring(@LiteralParameter("x") Long x, @SqlType("char(x)") Slice utf8, @SqlType(StandardTypes.BIGINT) long start)
    {
        return substring(padSpaces(utf8, x.intValue()), start);
    }

    private  StringFunctions();

}