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 IfErrorFunction() : base("IfError", TexlStrings.AboutIfError, FunctionCategories.Logical, DType.Unknown, 0, 2, int.MaxValue) { ScopeInfo = new FunctionScopeInfo(this, iteratesOverScope: false, scopeType: DType.CreateRecord( new TypedName(ErrorType.ReifiedError(), new DName("FirstError")), new TypedName(ErrorType.ReifiedErrorTable(), new DName("AllErrors")), new TypedName(DType.ObjNull, new DName("ErrorResult"))), appliesToArgument: (i => i > 0 && (i % 2 == 1))); }
public ConcatFunction() : base("Concat", TexlStrings.AboutConcat, FunctionCategories.Table, DType.String, 0x02, 2, 3, DType.EmptyTable, DType.String) { ScopeInfo = new FunctionScopeInfo(this, usesAllFieldsInScope: false); }
public CountIfFunction() : base("CountIf", TexlStrings.AboutCountIf, FunctionCategories.Table | FunctionCategories.MathAndStat, DType.Number, -2, 2, int.MaxValue, DType.EmptyTable, DType.Boolean) { ScopeInfo = new FunctionScopeInfo(this, usesAllFieldsInScope: false); }
public ForAllFunction() : base("ForAll", TexlStrings.AboutForAll, FunctionCategories.Table, DType.Unknown, 0x2, 2, 2, DType.EmptyTable) { ScopeInfo = new FunctionScopeInfo(this); }
public FilterFunction() : base("Filter", TexlStrings.AboutFilter, FunctionCategories.Table, DType.EmptyTable, -2, 2, int.MaxValue, DType.EmptyTable) { ScopeInfo = new FunctionScopeInfo(this, acceptsLiteralPredicates: false); }
public SortFunction() : base("Sort", TexlStrings.AboutSort, FunctionCategories.Table, DType.EmptyTable, 0x02, 2, 3, DType.EmptyTable) { ScopeInfo = new FunctionScopeInfo(this); _sortOrderValidator = ArgValidators.SortOrderValidator; }
public LookUpFunction() : base("LookUp", TexlStrings.AboutLookUp, FunctionCategories.Table, DType.Unknown, 0x6, 2, 3, DType.EmptyTable, DType.Boolean) { ScopeInfo = new FunctionScopeInfo(this); }
public StatisticalTableFunction(string name, TexlStrings.StringGetter description, FunctionCategories fc) : base(name, description, fc, DType.Number, 0x02, 2, 2, DType.EmptyTable, DType.Number) { ScopeInfo = new FunctionScopeInfo(this, usesAllFieldsInScope: false, acceptsLiteralPredicates: false); }
public WithFunction() : base("With", TexlStrings.AboutWith, FunctionCategories.Table, DType.Unknown, 0x2, 2, 2, DType.EmptyRecord) { ScopeInfo = new FunctionScopeInfo(this, iteratesOverScope: false); }