Skip to content
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

builtin.string: add CamelCase to/from snake_case #21679

Merged
merged 3 commits into from
Jun 15, 2024

Conversation

kbkpbot
Copy link
Contributor

@kbkpbot kbkpbot commented Jun 15, 2024

camel_to_snake convert string from camelCase to snake_case
snake_to_camel convert string from snake_case to camelCase

@Delta456
Copy link
Member

Do we need this?

@kbkpbot
Copy link
Contributor Author

kbkpbot commented Jun 15, 2024

I think c2v need this.

vlib/builtin/string.v Outdated Show resolved Hide resolved
vlib/builtin/string.v Outdated Show resolved Hide resolved
vlib/builtin/string.v Outdated Show resolved Hide resolved
vlib/builtin/string.v Outdated Show resolved Hide resolved
@spytheman
Copy link
Member

spytheman commented Jun 15, 2024

Do we need this?

I think they are good additions.

They are not very commonly used, but not too rarely either, and the code for them can be tricky to get right initially on the spot.

@spytheman spytheman merged commit df1e4f1 into vlang:master Jun 15, 2024
76 checks passed
raw-bin pushed a commit to raw-bin/v that referenced this pull request Jul 2, 2024
@kbkpbot kbkpbot deleted the snake-camel branch October 3, 2024 00:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants