Re: [PHP] CamelCase conversion to proper_c_style

2009-04-27 Thread Richard Heyes
Hi, I know it's probably heresy for a lot of coders, but does anyone know a function or class or regexp or somesuch which will scan through a PHP file and convert all the CamelCase code into proper C-type code? That is, CamelCase gets converted to camel_case. I snagged a bunch of someone

RE: [PHP] CamelCase conversion to proper_c_style

2009-04-27 Thread Marc Christopher Hall
My suggestion is to use the Find and Replace feature of your code editing software. Sorry to disagree with Mr. Hayes, however, if you do as he says and replace as you go you will be creating errors as these variables, functions, etc will most likely be CaSe SenSItiVe. Change one then you need to

Re: [PHP] CamelCase conversion to proper_c_style

2009-04-27 Thread tedd
At 9:40 AM +0100 4/27/09, Richard Heyes wrote: Hi, I know it's probably heresy for a lot of coders, but does anyone know a function or class or regexp or somesuch which will scan through a PHP file and convert all the CamelCase code into proper C-type code? That is, CamelCase gets

Re: [PHP] CamelCase conversion to proper_c_style

2009-04-27 Thread Nathan Rixham
tedd wrote: At 9:40 AM +0100 4/27/09, Richard Heyes wrote: Hi, I know it's probably heresy for a lot of coders, but does anyone know a function or class or regexp or somesuch which will scan through a PHP file and convert all the CamelCase code into proper C-type code? That is, CamelCase

Re: [PHP] CamelCase conversion to proper_c_style

2009-04-27 Thread Daniel Brown
On Mon, Apr 27, 2009 at 01:25, Paul M Foster pa...@quillandmouse.com wrote: I know it's probably heresy for a lot of coders, but does anyone know a function or class or regexp or somesuch which will scan through a PHP file and convert all the CamelCase code into proper C-type code? That is,