XP is just a number | |
PerlMonks |
another string replacement with uppercase :: converting C macros to C++by f77coder (Beadle) |
on Jan 23, 2016 at 08:19 UTC ( [id://1153451]=perlquestion: print w/replies, xml ) | Need Help?? |
f77coder has asked for the wisdom of the Perl Monks concerning the following question:
hello,
i've been hacking away at this but can't get the correct regex expression and would like a little help. old C-style macros in headers files are #ifdef __some_Long_name__ which start and end with double underlines and look like perl literals in C++14, i'd like to batch convert these macros to standard which strips the double underscores and convert strings to upper case like this SOME_LONG_NAME i like one-liners, so i've tried these and many variations to escaping the underscores
thanks
Back to
Seekers of Perl Wisdom
|
|