disgracer test |
# |
user readable name |
created method name? |
created class? |
Remove everything which is not a letter, number, dot or underscore |
Hello+-#=()world |
HelloWorld |
HelloWorld |
Remove space and capitalze the following letter |
Hello world |
HelloWorld |
HelloWorld |
do nothing if no special char |
nothingdone |
nothingdone |
nothingdone |
do nothing if no special char |
still_nothingDone99 |
still_nothingDone99 |
still_nothingDone99 |
Remove space and capitalze the following letter |
Hello world |
HelloWorld |
HelloWorld |
Classes are disgraced to start with upper case, methods not |
lower case |
lowerCase |
LowerCase |
Don't touch if there are dots (required for static methods) |
Static.method |
Static.method |
Static.method |
|
Hello.World. |
Hello.World. |
Hello.World. |
Except if only the last char is a dot |
HelloWorld. |
HelloWorld |
HelloWorld |
Don't touch class names with dollar |
i am $ rich |
iAmRich |
i am $ rich |
|
HELLOWorld |
HELLOWorld |
HELLOWorld |