Skip to content

Duplicate function for HexToBin and BinToHex

Original Reporter info from Mantis: Bi0T1N @Bi0T1N
  • Reporter name: Bi0T1N

Description:

I'm not really sure, maybe there is a reason for this but in rtl/objpas/classes/classesh.inc there is
&LtPos;p>
function LineStart(Buffer, BufPos: PChar): PChar;
procedure BinToHex(BinValue, HexValue: PChar; BinBufSize: Integer);
&LtPos;/p>
with the implementation in rtl/objpas/classes/util.inc.
Exactly the same appears again in packages/rtl-objpas/src/inc/strutils.pp - so maybe remove one of it to avoid code duplication?

Mantis conversion info:

  • Mantis ID: 38133
  • Version: 3.3.1
  • Fixed in version: 3.3.1
  • Target version: 4.0.0
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information