NSString总结

typedef NS_OPTIONS(NSUInteger, NSStringCompareOptions) {
    NSCaseInsensitiveSearch //不区分大小写
    NSLiteralSearch //区分大小写
    NSBackwardsSearch //从末尾开始搜索
    NSAnchoredSearch //搜索限制范围的字符串
    NSNumericSearch //按照字符串里的数字为依据排序如Foo2.txt < Foo7.txt < Foo25.txt
    NSDiacriticInsensitiveSearch //忽略 "-" 符号的比较
    NSWidthInsensitiveSearch //忽略字符串的长度,比较出结果
    NSForcedOrderingSearch //忽略不区分大小写比较的选项,并强制返回 NSOrderedAscending 或者 NSOrderedDescending
    NSRegularExpressionSearch 
};

你可能感兴趣的:(NSString总结)