我正在寻找一种在Objective-C中对一个字符串执行不区分大小写的搜索方法。我可以找到搜索区分大小写字符串和比较不区分大小写的方法,但没有搜索+不区分大小写的方法。
我想执行的搜索示例:
- 在“i told JOHN to find me a good search algorithm”中搜索“john”。 - 在“I think its a really baD idea to post this question”中搜索“bad IDEA”。
我更喜欢使用NSStrings。
我想执行的搜索示例:
- 在“i told JOHN to find me a good search algorithm”中搜索“john”。 - 在“I think its a really baD idea to post this question”中搜索“bad IDEA”。
我更喜欢使用NSStrings。