[Lazarus] Tool to convert a multiline text to a pascal string constant

Luiz Americo Pereira Camara luizamericop at gmail.com
Tue Feb 2 22:44:07 CET 2016


2016-02-02 18:40 GMT-03:00 Dmitry Boyarintsev <skalogryz.lists at gmail.com>:

> On Tue, Feb 2, 2016 at 4:33 PM, Luiz Americo Pereira Camara <
> luizamericop at gmail.com> wrote:
>
>> Hi is there any tool for Lazarus to convert a multi line text (xml
>> snipet, SQL) to a string constant?
>>
>
> Shouldn't there be something already in Lazarus itself that you could use?
>

I dont know. That's why i'm asking


> Back at the time when all resources were pascal string constants?
>
>
>>
>> Currently i'm using the following regular expression
>>
>> http://regexr.com/3cna5
>>
>
> I think it doesn't replace single-quote character (') by doubled
> single-quote character ( '' )
>
>
It's pretty simple if someone can improve it, it would help

Luiz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20160202/7f3e3310/attachment-0003.html>


More information about the Lazarus mailing list