Class Table
- Namespace
- TabScript
- Assembly
- TableScript.dll
Table class, represents a dynamic array of strings. Be careful with its use, its only optimized for the languge itself
public class Table
- Inheritance
-
Table
- Inherited Members
Constructors
Table()
Initialize empty Table
public Table()
Table(List<string>)
Initialize Table
public Table(List<string> t)
Parameters
Table(int)
Initialize Table as integer
public Table(int n)
Parameters
nint
Table(string)
Initialize table with single string
public Table(string s)
Parameters
sstring
Table(params string[])
Initialize table with strings
public Table(params string[] ss)
Parameters
ssstring[]
Table(Table)
Clone Table
public Table(Table t)
Parameters
tTable
Fields
MaxLength
Maximum length for non-number tables. Is not strictly enforced
public static int MaxLength
Field Value
Properties
False
false boolean as table
public static Table False { get; }
Property Value
IsNumber
If it is internally represented as a number
public bool IsNumber { get; }
Property Value
this[int]
Careful! Unsafe
public string this[int index] { get; }
Parameters
indexint
Property Value
Length
Table length (as int)
public int Length { get; }
Property Value
True
true boolean as table
public static Table True { get; }
Property Value
Truthy
If it is considered true (as bool)
public bool Truthy { get; }
Property Value
contents
Full contents
public IReadOnlyList<string> contents { get; }
Property Value
Methods
Add(string)
Add to end
public void Add(string s)
Parameters
sstring
Add(Table)
Add to end
public void Add(Table t)
Parameters
tTable
AddRange(Table)
Add to end
public void AddRange(Table t)
Parameters
tTable
AsBool()
Table -> bool
public bool AsBool()
Returns
AsInt()
Table -> int
public int AsInt()
Returns
AsString()
Table -> string
public string AsString()
Returns
Clone()
public Table Clone()
Returns
Contains(Table)
If the Table contains all elements of the Table arg
public bool Contains(Table t)
Parameters
tTable
Returns
EqualTo(Table)
Checking for equality
public bool EqualTo(Table t)
Parameters
tTable
Returns
GetBool(bool)
bool -> Table
public static Table GetBool(bool b)
Parameters
bbool
Returns
GetElem(TabIndex)
Get Element
public Table GetElem(TabIndex ind)
Parameters
indTabIndex
Returns
GetRange(TabIndex, TabIndex)
Get multiple elements
public Table GetRange(TabIndex ind, TabIndex len)
Parameters
Returns
IndexOf(string)
Find index of element
public int IndexOf(string elem)
Parameters
elemstring
Returns
Product(Table)
Cartesian product
public Table Product(Table t)
Parameters
tTable
Returns
RemoveAll(Table)
Remove from Table all elements contained in arg Table
public void RemoveAll(Table t)
Parameters
tTable
RemoveAt(int)
Remove from Table at index
public void RemoveAt(int ind)
Parameters
indint
RemoveEmpty()
Remove from Table all empty elements
public void RemoveEmpty()
RemoveSingle(Table)
Remove from Table elements contained in arg Table, only once
public void RemoveSingle(Table t)
Parameters
tTable
Reversed()
Reversed table
public Table Reversed()
Returns
SetElem(TabIndex, Table)
Set element to another Table
public void SetElem(TabIndex ind, Table t)
Parameters
Shuffled()
Randomly shuffled Table
public Table Shuffled()
Returns
SplitToChars()
Table -> Table of length 1 strings
public string[] SplitToChars()
Returns
- string[]
ToCompactString()
Represent in the same way as the source code, but compacter
public string ToCompactString()
Returns
ToString()
Represent in the same way as the source code
public override string ToString()