toConstant

open fun toConstant(string: CharSequence): String

Converts an arbitrary string to upper case identifier with words separated by _. Eg, camelCase -> CAMEL_CASE