Added NSRegularExpressionSearch (10.7) support to NSString.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33600 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
David Chisnall 2011-07-21 13:17:27 +00:00
parent 5c802d5d57
commit d9fda65728
4 changed files with 65 additions and 1 deletions

View file

@ -110,6 +110,17 @@ enum
NSWidthInsensitiveSearch = 256,
NSForcedOrderingSearch = 512
#endif
#if OS_API_VERSION(100700,GS_API_LATEST)
,
/**
* Treats the search string as a regular expression. This option may be
* combined with NSCaseInsensitiveSearch and NSAnchoredSearch, but no other
* search options.
*
* This option may only be used with the -rangeOfString: family of methods.
*/
NSRegularExpressionSearch = 1024
#endif
};
typedef NSUInteger NSStringCompareOptions;