toSnakeCase¶
fun String.toSnakeCase(): String
Converts this string to snake_case, splitting on both spaces and camelCase humps. Used to derive field/category ids from titles and delegated property names (e.g. "Max Items" and maxItems both become max_items).