Module Core.Utility
Project: Clock – Tamriel Standard Time
Author: Arne Rantzen (Tyx) Created: 2020–01–22 Updated: 2020–02–11 License: GPL-3.0
Functions
Clock_TST.GetLargestLine (str) | Find the largest line in a string Lines are counted when separated by “\n” |
Clock_TST.GetKeys (object) | Function to get a list of keys of a table |
Clock_TST.SelectiveCopy (object, default, ...) | Function to copy only objects from table which are not in the default one |
Clock_TST.DeepCompare (table1, table2) | Function to deeply compare two tables if the are the same |
Clock_TST.MergeTable (t1, ...) | Function to merge numerous tables together into the first |
Functions
- Clock_TST.GetLargestLine (str)
-
Find the largest line in a string
Lines are counted when separated by “\n”
Parameters:
- str string with one or more lines
Returns:
-
number length of largest line
- Clock_TST.GetKeys (object)
-
Function to get a list of keys of a table
Parameters:
- object table where the keys should be extracted from
Returns:
-
table of keys
- Clock_TST.SelectiveCopy (object, default, ...)
-
Function to copy only objects from table which are not in the default one
Parameters:
- object table base object
- default table default object to compare it with
- ... string additional keys to ignore
- Clock_TST.DeepCompare (table1, table2)
-
Function to deeply compare two tables if the are the same
Parameters:
- table1 table first table
- table2 table second table
Returns:
-
boolean if the tables are the same
- Clock_TST.MergeTable (t1, ...)
-
Function to merge numerous tables together into the first
Parameters:
- t1 table first table the rest will be merged into
- ... table in a undefined number
Returns:
-
table merge product of all inputs