<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"></head><body ><div style="font-family: Calibri, Verdana, Arial, sans-serif; font-size: 12pt;"><div>Alexey-<br></div><div><br></div><div>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.<br></div><div><br></div><div>Doug C.<br></div><div><br></div><div class="zmail_extra_hr" style="border-top: 1px solid rgb(204, 204, 204); height: 0px; margin-top: 10px; margin-bottom: 10px; line-height: 0px;"><br></div><div class="zmail_extra" data-zbluepencil-ignore="true"><div><br></div><div id="Zm-_Id_-Sgn1">---- On Tue, 11 Jan 2022 10:46:24 -0500 <b>Alexey Tor. via fpc-pascal <fpc-pascal@lists.freepascal.org></b> wrote ----<br></div><div><br></div><blockquote style="margin: 0px;"><div><p>Hello. As I see in the commit <a class="x_-1699889483moz-txt-link-freetext" href="https://gitlab.com/freepascal.org/fpc/source/-/commit/beecbf1581a986f544fde77aa428e05c21a35f6f" target="_blank">https://gitlab.com/freepascal.org/fpc/source/-/commit/beecbf1581a986f544fde77aa428e05c21a35f6f</a><br></p><p>StrToInt always uses ShortString buffer:<br></p><p><b>Function fpc_Val_SInt_ShortStr(DestSize: SizeInt; Const S:
ShortString; out Code: ValSInt): ValSInt;</b><br></p>If it is correct: Can we skip using ShortString buffer and have e.g.
'common' PChar base function for AnsiString/ShortString?<pre class="x_-1699889483moz-signature">--
Alexey<br></pre></div>_______________________________________________<br>fpc-pascal maillist - fpc-pascal@lists.freepascal.org<br>https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal<br></blockquote></div><div><br></div></div><br></body></html>