в файле конфигурации добавил возможность выбора "вида строки", на выбор:
{$DEFINE USE_STRING} // String
{$DEFINE USE_ANSISTRING} // AnsiString
{$DEFINE USE_UNICODESTRING} // UnicodeString
{$DEFINE USE_UTF8STRING} //UTF8String
Если в своём коде вы используете какой-то из видов строк, то лучше переключать дефайны. Иначе можно потерять в скорости из-за перевода строки из одного вида в другой.
Дефайны действуют в порядке приоритета сверху вниз. Нижние отключаться, если какой-то из верхних включен.
Так же мелкое исправление в коде, функция
geStrToUInt (и все зависимые от неё) могли выдать ошибку при подсчёте.
Да, да, я знаю, что нужны функции для разных видов строк. Но лично я считаю, что неправильно прыгать с одного вида строк на другой.
google translate:
added the ability to select the "string type" in the configuration file, to choose from:
{$DEFINE USE_STRING} // String
{$DEFINE USE_ANSISTRING} // AnsiString
{$DEFINE USE_UNICODESTRING} // UnicodeString
{$DEFINE USE_UTF8STRING} //UTF8String
If in your code you use one of the types of strings, then it is better to switch defines. Otherwise, you can lose speed due to the translation of a string from one type to another.
Defines operate in order of priority from top to bottom. The lower ones will turn off if any of the upper ones is on.
Also a minor fix in the code, the function
geStrToUInt (and all dependent on it) could give an error when calculating.
Yes, yes, I know that functions are needed for different kinds of strings. But personally, I think it's wrong to jump from one string type to another.
-->fast_StrToInt download.<--