(V|G)CC4ME
November 7th, 2008, 09:11 PM
I'm trying to think of a quick way to remove Hungarian notation from some code like this:
clSomeClass -> someClass
bSomeBoolean -> someBoolean
vSomeFunction -> someFunction
I know the answer lies somewhere with sed or awk, but I unfortunately do not have much experience with either of these programs. I can write the regular expression to find all instances of Hungarian notation in the program and successfully remove the Hungarian letters. The problem lies in replacing the capital letter after the Hungarian letter with its lowercase equivalent.
Any ideas?
Thanks guys.
clSomeClass -> someClass
bSomeBoolean -> someBoolean
vSomeFunction -> someFunction
I know the answer lies somewhere with sed or awk, but I unfortunately do not have much experience with either of these programs. I can write the regular expression to find all instances of Hungarian notation in the program and successfully remove the Hungarian letters. The problem lies in replacing the capital letter after the Hungarian letter with its lowercase equivalent.
Any ideas?
Thanks guys.