Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

When dealing with case you rarely (if ever) need bijective transformations...

Case-insensitive search/comparison requires a temporary mapping, not a permanent transformation; the German case is easily handled in Unicode's CaseFolding.txt by just mapping all three of them either to ss or to ß (depending on the implementer, if he prefers a length-invariant mapping or not).

Position-dependent? I read about it, but the Unicode case folding algorithm doesn't support it, so I imagine it's not considered useful for case-insensitive comparison

You will probably do want a good library when dealing with Unicode, but for this case thing it actually doesn't seem to be that complex to implement by hand...

I don't doubt case-sensitive is far easier to program , but you usually program for some user's sake, not for your own pleasure :)

And in most cases a normal user expects case-insensitive search



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: