Skip to content

2.4 [260907a]

Latest

Choose a tag to compare

@ejetaxeblevich ejetaxeblevich released this 07 Sep 18:05
· 5 commits to main since this release
ecd0c2c
  • Добавлены новые функции:
/* Строки */

[F] string string.isbinary( string )
/* Возвращает строку байт (форматированную),

   если строка содержит бинарные значения */

[F] string string.hex( string, string separator )
/* Преобразует строку как hex значения с разделением separator */


/* Таблицы */

[F] string table.tostring2( table )
/* Преобразует таблицу в строку.

   Рекурсивно, для словарей по всем индексам и ключам */

[F] int table.getn2( table )
/* Возвращает количество элементов таблицы.

   Поверхностно, для словарей по всем индексам и ключам (стандартный getn считает только списки по индексам) */
  • Исправлена и оптимизирована функция string.shield. Теперь она не может заменить полезные значения на мусор;
  • Исправлена функция table.tostring. Сейчас она не ломается на рекурсиях и разных типов данных (для теста в нее был помещен lua-модуль);
  • Исправлена функция table.amount2. Исправлена критическая опечатка amount и убраны ненужные лишние аргументы из 2.3 [260903a];
  • Исправлено экранирующее поле LuaE.shield. Добавлены спецсимволы переноса строки, каретки, табуляции и нулевого символа (из-за внешних технических причин);
  • Добавлено анти-экранирующее поле LuaE.unshield для реверса LuaE.shield в функции string.shield;
  • Добавлено поле hex-значений LuaE.hex для функции string.hex;
  • Добавлены некоторые string. и table. алиасы для небольшого роста производительности;
  • Изменен README.

Click here for view text of the update is in English
  • New functions have been added:
/* Strings */

[F] string string.isbinary( string )
/* Returns a byte string (formatted),

   if the string contains binary values */

[F] string string.hex( string, string separator )
/* Converts the string into hex values, separating them with the specified separator */


/* Tables */

[F] string table.tostring2( table )
/* Converts the table into a string.

   Recursively, for dictionaries, for all indices and keys */

[F] int table.getn2( table )
/* Returns the number of elements in the table.

   Superficially, for dictionaries, it counts all indices and keys (the standard getn counts only lists by indices) */
  • Fixed and optimized the string.shield function. Now it cannot replace useful values with garbage;
  • Fixed the table.tostring function. Now it doesn't break on recursions and different data types (a lua-module was placed in it for the test);
  • Fixed the table.amount2 function. The critical typo amount has been corrected, and unnecessary extra arguments have been removed from the 2.3 [260903a];
  • Fixed the escaping field LuaE.shield. Special characters for line feed, carriage return, tabulation, and null character have been added (due to external technical reasons);
  • Added the anti-shielding field LuaE.unshield to reverse the LuaE.shield in the string.shield function;
  • Added the hex-values field LuaE.hex for the string.hex function;
  • Added some string. and table. aliases to slightly improve performance;
  • Edited README.