Author Topic: [Rel] Replacer  (Read 2812 times)

DLPB_

  • Banned
  • *
  • Posts: 11006
    • View Profile
[Rel] Replacer
« on: 2012-03-01 11:29:27 »
Replacer 1.2 is Here

Not sure really where else this would be applicable so I placed it here.
This is my bog standard little program for altering single or mass plain text files (it can use wildcard extensions too like txt, ini, rtf and html) in batch processing.  Although it is 1.0 I advise caution when using this as it can corrupt data if you don't know what you are doing.  I don't want to be held accountable for that :P As long as you read the readme it should be fine.

This cannot alter formatted text documents like word (if you add .doc; to settings.ini it will change the documents but completely cripple them).  It was created purely to edit text and especially config files.  I would be happy if people gave me some feedback.    Remember this was created by me for me.
« Last Edit: 2012-03-22 04:47:41 by DLPB »

Jenova's Witness

  • Right Wing Safety Squads
  • *
  • Posts: 471
  • I ♥ SCIENCE
    • View Profile
.
« Reply #1 on: 2012-03-02 22:22:39 »
.
« Last Edit: 2015-11-16 10:09:27 by Jenova's Witness »

DLPB_

  • Banned
  • *
  • Posts: 11006
    • View Profile
Re: [Rel] Replacer
« Reply #2 on: 2012-03-04 10:51:53 »
I dunno.  May work on linux if you have compatibility whatsitsname.  But it is designed for windows.  I am also gonna have to rewrite some of it so it supports unicode.

Jenova's Witness

  • Right Wing Safety Squads
  • *
  • Posts: 471
  • I ♥ SCIENCE
    • View Profile
.
« Reply #3 on: 2012-03-04 20:14:32 »
.
« Last Edit: 2015-11-16 10:09:08 by Jenova's Witness »

DLPB_

  • Banned
  • *
  • Posts: 11006
    • View Profile
Re: [Rel] Replacer
« Reply #4 on: 2012-03-04 20:23:06 »
Well any case, Delphi 7 does not support unicode in the way it is needed for display purposes.

However, since this is just a parser, I have made it work to replace the text properly.  The reason it wasnt replacing “ was because it was the 1 byte ansi and not the 3 byte unicode...  I did not save my batch file as a UTF8 file hence the issue.

The next version will allow it since it deals with the BOM too which 1.0 does not.  In fact after hours of testing and thinking, I found out it was already working as it should apart from that.
« Last Edit: 2012-03-04 20:27:02 by DLPB »

DLPB_

  • Banned
  • *
  • Posts: 11006
    • View Profile
Re: [Rel] Replacer
« Reply #5 on: 2012-03-05 18:07:21 »
There we go, massive speed up with normal replace and also utf8 support.  Let's see how it goes, though primary use is altering config files for installers.