toConstant

open fun toConstant(string: CharSequence): String(source)

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