Camel case and snake case: Difference between revisions
→{{header|Quackery}}: bug fix and tidy up
(Added Quackery) |
(→{{header|Quackery}}: bug fix and tidy up) |
||
Line 1,198:
[ dup lower != ] is capital ( c --> b )
[
$ "" false rot
witheach
[ dup separator iff
Line 1,218 ⟶ 1,219:
{{out}}
Testing in the shell.
<pre>/O>
...
...
...
...
...
...
...
...
...
...
... cr
...
...
...
To camelCase:
snakeCase▼
snakeCase
variable10Case▼
▲snakeCase
variable10Case
ergoRETHis▼
▲variable10Case
hurryUpJoe!▼
▲ergoRETHis
c://myDocs/happyFlagDay/12.doc▼
▲hurryUpJoe!
spaces
▲c://myDocs/happyFlagDay/12.doc
To snake_case:
snake_case▼
snake_case
variable10_case▼
▲snake_case
variable10_case
ergo_r_e_t_his▼
▲variable10_case
hurry_up_joe!▼
▲ergo_r_e_t_his
c://my_docs/happy_flag_day/12.doc▼
▲hurry_up_joe!
spaces
▲c://my_docs/happy_flag_day/12.doc
Stack empty.</pre>
|