[Lazarus] Tool to convert a multiline text to a pascal string constant
Marco van de Voort
marcov at stack.nl
Fri Feb 12 10:13:21 CET 2016
On Thu, Feb 11, 2016 at 11:08:12AM +0100, Michalis Kamburelis wrote:
> Hm, I admit I simply didn't know about them long time ago, when creating
> file_to_pascal_xxx utilities in PasDoc:)
>
> Looking at them now:
>
> 1. They both have quite longer code than our simple
> file_to_pascal_string.dpr / file_to_pascal_data.dpr...
>
> In particular data2inc wants to do much more (being able to process a
> special file format like data2inc.exm). Although it can do the simple
> thing when invoked with -b option.
Data2inc is the result of integration of several such programs and is quite
old (late nineties) because they shared many routines (this was all before
strutils and hex/bin/oct functionality in inttostr etc existed). Yes the
bulk of the code is for other things, but I always used it for the straight
case.
IIRC Michael didn't know it, so he wrote bin2obj.
More information about the Lazarus
mailing list