[Lazarus] Is there a tool to list all the string literals in your application?
David Emerson
dle3ab at angelbase.com
Tue Jan 4 22:45:26 CET 2011
> I am interested in one that parses the source code rather than the
> executable.
> Can some development related utility find all the string literals and print
> out their line numbers?
sed -n "/'/=" source.pas
sed -n "/'/{=;p}" source.pas
sed -n "/'/{=;s/[^']*\('[^']*'\)[^']*/||| \1 /gp}" source.pas
I could go on and on...
http://www.grymoire.com/Unix/Sed.html
Have fun. Sed is like the antithesis of elegance.
~David.
More information about the Lazarus
mailing list