Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Accent insensitive string comparison?

Is there any way to do an accent insensitive string comparison? For example, é == e? I couldn't find any options to pass rangeOfString:options:. Any help is greatly appreciated.

like image 456
Sam Avatar asked Sep 30 '11 13:09

Sam


1 Answers

You want to pass the NSDiacriticInsensitiveSearch option to whichever method you use (e.g. compare:options: or rangeOfString:options:)

like image 71
Mike Weller Avatar answered Oct 22 '22 00:10

Mike Weller