public SortByColumnsFunction() : base("SortByColumns", TexlStrings.AboutSortByColumns, FunctionCategories.Table, DType.EmptyTable, 0, 2, int.MaxValue, DType.EmptyTable, DType.String) { _sortOrderValidator = ArgValidators.SortOrderValidator; // SortByColumns(source, name, order, name, order, ...name, order, ...) SignatureConstraint = new SignatureConstraint(omitStartIndex: 5, repeatSpan: 2, endNonRepeatCount: 0, repeatTopLength: 9); }
public AddColumnsFunction() : base("AddColumns", TexlStrings.AboutAddColumns, FunctionCategories.Table, DType.EmptyTable, 0, 3, int.MaxValue, DType.EmptyTable) { // AddColumns(source, name, valueFunc, name, valueFunc, ..., name, valueFunc, ...) SignatureConstraint = new SignatureConstraint(omitStartIndex: 5, repeatSpan: 2, endNonRepeatCount: 0, repeatTopLength: 9); ScopeInfo = new FunctionScopeInfo(this); }
public SwitchFunction() : base("Switch", TexlStrings.AboutSwitch, FunctionCategories.Logical, DType.Unknown, 0, 3, int.MaxValue) { // If(cond1, value1, cond2, value2, ..., condN, valueN, [valueFalse], ...) // Switch(switch_value, match_value1, match_result1, match_value2, match_result2, ..., match_valueN, match_resultN, [default_result], ...) SignatureConstraint = new SignatureConstraint(omitStartIndex: 5, repeatSpan: 2, endNonRepeatCount: 0, repeatTopLength: 9); }
public IfFunction() : base("If", TexlStrings.AboutIf, FunctionCategories.Logical, DType.Unknown, 0, 2, int.MaxValue) { // If(cond1, value1, cond2, value2, ..., condN, valueN, [valueFalse], ...) SignatureConstraint = new SignatureConstraint(omitStartIndex: 4, repeatSpan: 2, endNonRepeatCount: 0, repeatTopLength: 8); }