Tool to "Find/Replace" variable- or function names ?

Do you have a question? Post it now! No Registration Necessary

Translate This Thread From English to

Threaded View
Hi,

I used to use some DOS based program that could Find/Replace over
multiple C-source files. One could specify whether it was a variable
or function name. It broke under Win3.1 already, and so far I have not
found a replacement. AFAICR the executable was called PPT.EXE.

Regards
  Anton Erasmus



Re: Tool to "Find/Replace" variable- or function names ?

Quoted text here. Click to load it

Borland's CodeWright can do this very easily from within the editor.

--
- Mark ->
--

Re: Tool to "Find/Replace" variable- or function names ?

Quoted text here. Click to load it

The editor I use (CodeWright) lets you do this, though it's not smart
about limiting substitution to variable and function names.  It will
prompt you before replacing if you ask it to.  It does have a "Whole
Word" option so if you want to change (e.g.) "ind" to "idx", you won't
get a file full of "widxow"

How about sed?  It comes with cygwin...

Or you could try writing your own.  Shouldn't be that hard, even if
you want to skip comments and string literals.

Regards,

                               -=Dave
--
Change is inevitable, progress is not.

Re: Tool to "Find/Replace" variable- or function names ?
Quoted text here. Click to load it

vim and ctags is a pretty standard and free tool for doing it.


Re: Tool to "Find/Replace" variable- or function names ?
Quoted text here. Click to load it

IIRC, it does.


Re: Tool to "Find/Replace" variable- or function names ?
snipped-for-privacy@hotmail.com (Dave Hansen) wrote in

Quoted text here. Click to load it

Actually, v7.5 can restrict to replace within any set of syntax colorable
items. E.g. just functions or just keywords or just keywords and user1,
etc.

--
- Mark ->
--

Re: Tool to "Find/Replace" variable- or function names ?
Quoted text here. Click to load it

UltraEdit (www.ultraedit.com) is another windows based programmer's
editor that can do this.  The latest version has a preserve case feature
so that "this" is replaced with "that" while "This" is replaced with "That".
A single user license is US$35.

Kevin



Re: Tool to "Find/Replace" variable- or function names ?
wrote in comp.arch.embedded:

Quoted text here. Click to load it

CodeWright is far and away the best for this, as others have pointed
out, but expensive it it's coming out of your pocket and not your
company's.

TextPad is a shareware Windows editor that can do this and quite a few
other things.  IIRC registration is about $30.00.  www.textpad.com.

--
Jack Klein
Home: http://JK-Technology.Com
We've slightly trimmed the long signature. Click to see the full one.
Re: Tool to "Find/Replace" variable- or function names ?
H snipped-for-privacy@yahoo.com (Yaakov) wrote in

Quoted text here. Click to load it

My editor can beat up your editor!

--
- Mark ->
--

Site Timeline