-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: Camel case from/to underscore conversion #1
Comments
Add a new rule in camel case to underscore (snake) case.
Some cases.
|
As snake/kebab case conversion is aware of space, To make the conversion rule clear, we define it as following. Camel/snake/kebab case conversion is to convert words separated by space, underscore and hyphen to expected case. For snake or kebab case conversion, when an upper case rune is converted to lower case, a new underscore or hyphen is inserted before the rune. For the string
|
Add a new rule to make string starting with number more readable. If there are lower case characters immediately following numbers, e.g. Following are some samples.
|
BREAKING CHANGE Per discussion in #56 and the history around PascalCase and CamelCase, For the string
|
Camel case to underscore.
SomeWords
=>some_words
HTTPServer
=>http_server
NoHTTPS
=>no_https
Underscore to camel case.
some_words
=>SomeWords
http_server
=>HttpServer
no_https
=>NoHttps
_complex__case_
=>_Complex_Case_
The text was updated successfully, but these errors were encountered: