The third syntax supports appending multiple lines with one single operation. (Setting index 0 causes an append operation.) In the first syntax, it is the number 0 (zero) used for index. It is always fast to access lines near the beginning or end of the file.Īppend one or more lines to the end of the subtitles file. It is faster to access a line with an index close to the one you last accessed than to access one further away. While Automation 4 Lua presents the subtitles as if it was an array, it internally maintains a cursor used to optimise for sequential access. This is one-based, the first line in the file has index 1.Īegisub internally stores the subtitle file as a linked list, which means that random access is slow, but sequential access is fast. i (number) - Index into the subtitles file of the line number to retrieve.Will be nil if the line indexed is out of range. line (table) - Table with data about the retrieved line. This retrieves the indexed line and creates a new table object with data about it. The first syntax is the preferred one, per normal Lua 5.1 coding style.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |