KotlinNames
Small, dependency-free Kotlin naming helpers.
The engine needs stable defaults when generating Kotlin stubs (import, scaffolding, etc.). In practice, the two most important operations are:
Turning a human / file / folder name into a Kotlin type name (UpperCamelCase).
Turning a Kotlin type name into a Kotlin property name (lowerCamelCase).
This file intentionally avoids heavyweight dependencies and keeps the rules predictable.
Functions
Derives a dotted Kotlin package name from a relative directory path.
Converts a dotted package name to a forward-slash-separated relative path.
Convert a Kotlin type name into a lowerCamelCase property name.
Best-effort conversion of a file system path segment into a Kotlin package segment.
Strict conversion of a path segment into a Kotlin package segment.
Convert an arbitrary string into a valid Kotlin class name.