Recent

Author Topic: Easy String Replacer 1.0 beta released  (Read 11337 times)

ahmetnurideniz

  • Full Member
  • ***
  • Posts: 110
  • As you sow, you shall reap.
    • Big Student Web Site
Easy String Replacer 1.0 beta released
« on: April 24, 2011, 01:07:51 pm »
Hi, I need find and replace a lot of string. Then I write Easy String Replacer.
It can find and replace all the list.  How it is work?
Add your finds list
Add your replace list
Add your main string data
Click Replace All button.
very simple and use full program.
you can download here exe and code files
Please write here your ideas for this program

http://sourceforge.net/projects/stringreplacer/
« Last Edit: April 24, 2011, 06:49:11 pm by ahmetnurideniz »

fabienwang

  • Sr. Member
  • ****
  • Posts: 449
  • Lazarus is the best
    • My blog
Re: Easy String Replacer 1.0 beta released
« Reply #1 on: April 24, 2011, 01:24:55 pm »
Why not just use RTL function StringReplace() ( http://www.freepascal.org/docs-html/rtl/sysutils/stringreplace.html ) ?

oh a software :). Nice idea
« Last Edit: April 24, 2011, 01:46:20 pm by FabienWang »
I'm using Arch Linux.
Known for: CPickSniff, OpenGrabby
Contributed to: LazPaint

Peter F

  • New Member
  • *
  • Posts: 13
Re: Easy String Replacer 1.0 beta released
« Reply #2 on: April 24, 2011, 01:27:20 pm »
Hi,

I downloaded and was trying to work your program.

First i have to start by saying  that i love your idea!

But it is very unclear for me;
File -> Load does not work
When i insert a blank it works as well
When i insert a word and wanna upper or lower it i get an out of bound.
i don't see the code.

I am working on a Win 7 Pro 64 bit enviroment. I hope this helps you a bit.

Cheers,

Peter

ahmetnurideniz

  • Full Member
  • ***
  • Posts: 110
  • As you sow, you shall reap.
    • Big Student Web Site
Re: Easy String Replacer 1.0 beta released
« Reply #3 on: April 24, 2011, 01:52:46 pm »
Why not just use RTL function StringReplace() ( http://www.freepascal.org/docs-html/rtl/sysutils/stringreplace.html ) ?

oh a software :). Nice idea
I never use sysutils before. But I think use SynEdit instead of memo.
« Last Edit: April 24, 2011, 02:12:33 pm by ahmetnurideniz »

ahmetnurideniz

  • Full Member
  • ***
  • Posts: 110
  • As you sow, you shall reap.
    • Big Student Web Site
Re: Easy String Replacer 1.0 beta released
« Reply #4 on: April 24, 2011, 02:08:49 pm »


Hi, Thanks for test the program
Quote
File -> Load does not work
File -> Load does working but you should add sameting and save all before .
Quote
upper or lower carecter
i will think add this function.
Quote
i don't see the code.
I upload the source files again.

Quote
Win 7 Pro 64 bit enviroment
  I can't compile it 64 bit because I havn't got 64 bit os. But you can compile it.



Leledumbo

  • Hero Member
  • *****
  • Posts: 8114
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Easy String Replacer 1.0 beta released
« Reply #5 on: April 24, 2011, 05:04:25 pm »
Suggestion:
  • Remove binaries from the source package
  • Optimize the binaries (I've made it down to 1.87 MB instead of 18.8 MB)
  • Allow substitutions & texts to be saved to & loaded from user defined files
« Last Edit: April 24, 2011, 05:06:24 pm by Leledumbo »

ahmetnurideniz

  • Full Member
  • ***
  • Posts: 110
  • As you sow, you shall reap.
    • Big Student Web Site
Re: Easy String Replacer 1.0 beta released
« Reply #6 on: April 24, 2011, 05:53:16 pm »
Quote
Remove binaries from the source package

Ohh yes I forget it.
Quote
Allow substitutions & texts to be saved to & loaded from user defined files
Yes I think open dialog and save dialog is good idea for this. but All the files should be same folder.
« Last Edit: April 24, 2011, 06:54:39 pm by ahmetnurideniz »

Leledumbo

  • Hero Member
  • *****
  • Posts: 8114
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Easy String Replacer 1.0 beta released
« Reply #7 on: April 24, 2011, 07:51:42 pm »
Quote
Yes I think open dialog and save dialog is good idea for this. but All the files should be same folder.
You could create your own or use predefined formats (ini, xml, etc.) to save / load the substitutions. The texts that will be subject to replace should be another file.

BioHazard

  • Jr. Member
  • **
  • Posts: 57
  • Starless...
Re: Easy String Replacer 1.0 beta released
« Reply #8 on: April 25, 2011, 11:20:54 am »
Suggestion:
  • Remove binaries from the source package
  • Optimize the binaries (I've made it down to 1.87 MB instead of 18.8 MB)
  • Allow substitutions & texts to be saved to & loaded from user defined files

1.87 ?

Where is that topic which teaches us 10x optimization ?

: O

fabienwang

  • Sr. Member
  • ****
  • Posts: 449
  • Lazarus is the best
    • My blog
I'm using Arch Linux.
Known for: CPickSniff, OpenGrabby
Contributed to: LazPaint


RobinHoo

  • New Member
  • *
  • Posts: 10
Re: Easy String Replacer 1.0 beta released
« Reply #11 on: April 26, 2011, 08:35:00 am »
Any consideration about the codepage? Since I'm from China, it's very common problem, while we are doing string replacement, such as GB/BIG5/UTF8/UTF16. And if replaced string longer than origanl string, any actions should consider?

ahmetnurideniz

  • Full Member
  • ***
  • Posts: 110
  • As you sow, you shall reap.
    • Big Student Web Site
Re: Easy String Replacer 1.0 beta released
« Reply #12 on: April 27, 2011, 08:59:45 am »
Quote
Any consideration about the codepage? Since I'm from China, it's very common problem, while we are doing string replacement, such as GB/BIG5/UTF8/UTF16.

you can see the program codes form
http://sourceforge.net/projects/stringreplacer/files/

some of codes has utf8 support. I can't test it diffrent alphabet.  but you can test it. I hope it will work  Chinese Language.

Quote
And if replaced string longer than origanl string, any actions should consider?
why?
replaced string can longer than origanl string, for example you want to chanege All the A char to bbbbbbbbbb from A
« Last Edit: April 28, 2011, 12:05:28 am by ahmetnurideniz »