[fpc-pascal] StrToInt is using ShortString buffer?

Benito van der Zander benito at benibela.de
Thu Jan 13 01:44:47 CET 2022


Hi,

>
> If it is correct: Can we skip using ShortString buffer and have e.g. 
> 'common' PChar base function for AnsiString/ShortString? 

I keep arguing for that as well

> You can always create such a function yourself,  gain experience using 
> it, and share the source with us.
>

I wrote that for you:

https://forum.lazarus.freepascal.org/index.php/topic,55472.msg414973.html#msg414973

https://github.com/benibela/bbutils/blob/master/bbutils.pas#L3446-L3601

Cheers,
Benito

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20220113/002ea226/attachment.htm>


More information about the fpc-pascal mailing list