The Cusp of Helix

Intact Case [Details]

Summary of Intact Case

At last, summarize the rules of Intact Case.

camelCase ⇒ snake_case

  1. Tokenize.
  2. Add delimiter to after each acronym.
  3. Convert all words to lowercase.
  4. Concatenate words with between delimiter.

snake_case ⇒ camelCase

  1. Tokenize.
  2. Capitalize each word except first.
  3. If last letter of the word is a delimiter, remove the delimiter and to capitalize all letter of the word.
  4. When two or more uppercase-acronyms are successive, to use delimiter between them.
  5. Concatenate.

snake_case ⇒ StudlyCase

  1. Tokenize.
  2. Capitalize each word.
  3. If last letter of the word is a delimiter, remove the delimiter and to capitalize all letter of the word.
  4. When two or more uppercase-acronyms are successive, to use delimiter between them.
  5. Concatenate.

camelCase ⇒ StudlyCaps

  1. Convert camelCase to snake_case.
  2. Convert snake_case to StudlyCaps.

StudlyCaps ⇒ camelCase

  1. Convert StudlyCaps to snake_case.
  2. Convert snake_case to camelCase.