The Cusp of Helix

Reference of Intact Case
[toStudlyCaps]

(string) toStudlyCaps (delimiterx)

Convert to StudlyCaps from delimiterized compound words.

Parameters:

nametypedefaultcaption
delimiterstring'_'Delimiter.

Returns:

  • (string) — StudlyCaps string.

Author:

  • StewEucen

Since:

  • Version 1.0.0

Aliases:

  • toPascalCase

Examples:

"snake_case".toStudlyCaps() //=> "SnakeCase" "get_utc__day".toStudlyCaps() //=> "GetUTCDay" "ui__view".toStudlyCaps() //=> "UIView" "xml__html__request".toStudlyCaps() //=> "XML_HTMLRequest"