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

Case-insensitive equality/ordering #24

Open
SOF3 opened this issue Oct 9, 2020 · 1 comment
Open

Case-insensitive equality/ordering #24

SOF3 opened this issue Oct 9, 2020 · 1 comment

Comments

@SOF3
Copy link
Contributor

SOF3 commented Oct 9, 2020

Is it practical to compare strings in a snek-case-insensitive manner? I would like to know whether two strings are convertible to the same SnekCase/CamelCase/etc. without allocating a new String to hold the intermediates. Can heck's internal methods, such as transform, help with such needs?

@jplatte
Copy link
Collaborator

jplatte commented Dec 29, 2020

This is an interesting idea and I think would be feasible to implement in heck, though transform in its current form won't help AFAICT. If you could investiage a bit yourself and create a draft of how this could work, that would help towards getting this into the crate.

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

No branches or pull requests

2 participants