Proposal: 2 funcs BufferStrToInt, BufferHexToInt
Original Reporter info from Mantis: Alextp2
-
Reporter name: CudaText man_
Original Reporter info from Mantis: Alextp2
- Reporter name: CudaText man_
Description:
I made 2 funcs for CudaText and suggest to add em in some Lazarus unit.
One of em can be used to optimize fpDebug here:
&LtPos;/home/user/lazarus/components/fpdebug/fpdbgrsp.pas>: #4 &LtPos;( 458:19:12)>: result := StrToInt('$' + copy(msg, 2, 2)); &LtPos;( 636:15:12)>: b[i] := StrToInt('$'+reply[2*i+1]+reply[2*i+2]); &LtPos;( 687:17:12)>: buf[i] := StrToInt('$'+reply[2*i + 1]+reply[2*i + 2])
I post funcs to the 1st comment to edit it later.
Mantis conversion info:
- Mantis ID: 37564
- Version: 2.1 (SVN)
- Monitored by: » @martin_frb (Martin Friebe)