heck
heck copied to clipboard
Case-insensitive equality/ordering
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?
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.