[fpc-pascal] StrToInt is using ShortString buffer?
DougC
doug at moosemail.net
Wed Jan 12 15:19:48 CET 2022
Alexey-
You can always create such a function yourself, gain experience using it, and share the source with us. That way others can gain experience with it and maybe someday also ask for it to be added to the standard library.
Doug C.
---- On Tue, 11 Jan 2022 10:46:24 -0500 Alexey Tor. via fpc-pascal <fpc-pascal at lists.freepascal.org> wrote ----
Hello. As I see in the commit https://gitlab.com/freepascal.org/fpc/source/-/commit/beecbf1581a986f544fde77aa428e05c21a35f6f
StrToInt always uses ShortString buffer:
Function fpc_Val_SInt_ShortStr(DestSize: SizeInt; Const S:
ShortString; out Code: ValSInt): ValSInt;
If it is correct: Can we skip using ShortString buffer and have e.g.
'common' PChar base function for AnsiString/ShortString?--
Alexey
_______________________________________________
fpc-pascal maillist - fpc-pascal at lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20220112/08c57a70/attachment.htm>
More information about the fpc-pascal
mailing list