snakelize

external fun snakelize(str: String): String

Convert a camelCase string to snake_case: fooBar becomes foo_bar.