The Cusp of Helix

Intact Case [Details]

Interconversion

camelCase and snake_case are able to be converted each other. Natural interconverting is to carry out the following steps.

camelCase ⇒ snake_case

#ProcedureActual Example
0original camelCasegetRawKeys
1tokenizeget + Raw + Keys
2all words to lower caseget + raw + keys
3concatenate with between delimiterget_raw_keys

snake_case ⇒ camelCase

#ProcedureActual Example
0original snake_caseget_raw_keys
1tokenize by delimiter get + raw + keys
2capitalize each word except firstget + Raw + Keys
3concatenategetRawKeys

Many libraries to convert between camelCase and snake_case, have been created in a variety of programming languages by programmers around the world.

External Links