擅长:python、mysql、java
<p>您需要<a href="http://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/Reference/NSString.html#//apple_ref/occ/instm/NSString/hasPrefix%3a">^{<cd1>}</a>和<a href="http://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/Reference/NSString.html#//apple_ref/occ/instm/NSString/hasSuffix%3a">^{<cd2>}</a>消息。</p>
<p>我倾向于经常使用<a href="http://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/Reference/NSString.html#//apple_ref/occ/instm/NSString/compare%3aoptions%3a">^{<cd3>}</a>消息来实现相同的但不区分大小写的比较。</p>