From: Iram Weinstein on 22 Jul 2010 14:32 I have a lot of old code that is not standardized in it naming procedures. Some variables and functions use underlines, e.g., my_function. I'd like to be able to scan the file and convert to myFunction. Does anyone have tools like that? I started to write some code but realized its complicated. You don't want to change names that refer to functions outside the scope of the file. So before going much further, I thought I should check with the community. Iram Weinstein
From: Andy on 22 Jul 2010 14:44 "Iram Weinstein" <weinsteini(a)saic.nospamcom> wrote in message <i2a2sf$t79$1(a)fred.mathworks.com>... > I have a lot of old code that is not standardized in it naming procedures. Some variables and functions use underlines, e.g., my_function. I'd like to be able to scan the file and convert to myFunction. Does anyone have tools like that? I started to write some code but realized its complicated. You don't want to change names that refer to functions outside the scope of the file. So before going much further, I thought I should check with the community. > > Iram Weinstein You might look for FDEP on the file exchange to help you determine which function names refer to functions outside the scope of the file.
From: Jan Simon on 22 Jul 2010 17:19 Dear Iram, > I have a lot of old code ... > ... my_function. I'd like to be able to scan the file and convert to myFunction. Although the source code will look more standardized afterwards, automatical renaming is a common source of ugly bugs. So if you really think it is worth to a change running program, check carefully if any of the new names overlap with existing other symbols or function names. Better check it twice. Jan
|
Pages: 1 Prev: Passing Matrix to mex-file Next: Report Generator Style Sheet help |