mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
tweaks
This commit is contained in:
parent
41956b6169
commit
88720adbb1
2 changed files with 4 additions and 4 deletions
|
@ -66,7 +66,7 @@ static const NSMatchingOptions NSMatchingWithoutAnchoringBounds = 1<<4;
|
||||||
|
|
||||||
@class NSRegularExpression;
|
@class NSRegularExpression;
|
||||||
|
|
||||||
#if GS_API_VERSION(GS_API_NONE, GS_API_NONE)
|
#if GS_API_VERSION( 13100, GS_API_LATEST)
|
||||||
/** Enumeration with a C function callback uses this prototype
|
/** Enumeration with a C function callback uses this prototype
|
||||||
*/
|
*/
|
||||||
typedef void (*GSRegexEnumerationCallback)(NSRegularExpression *regex,
|
typedef void (*GSRegexEnumerationCallback)(NSRegularExpression *regex,
|
||||||
|
@ -129,7 +129,7 @@ GS_EXPORT_CLASS
|
||||||
options: (NSRegularExpressionOptions)opts
|
options: (NSRegularExpressionOptions)opts
|
||||||
error: (NSError**)e;
|
error: (NSError**)e;
|
||||||
- (NSString*) pattern;
|
- (NSString*) pattern;
|
||||||
#if GS_API_VERSION(GS_API_NONE, GS_API_NONE)
|
#if GS_API_VERSION( 13100, GS_API_LATEST)
|
||||||
/** In the GNUstep implementation this method is the fundametal primitive
|
/** In the GNUstep implementation this method is the fundametal primitive
|
||||||
* (unlike OSX which depends on blocks) upon which other methods are based.
|
* (unlike OSX which depends on blocks) upon which other methods are based.
|
||||||
* Its behavior is like that of the
|
* Its behavior is like that of the
|
||||||
|
|
|
@ -101,7 +101,7 @@ int main()
|
||||||
withTemplate: @"c"];
|
withTemplate: @"c"];
|
||||||
PASS_EQUAL(replacement, @"cb", "Replacement correct");
|
PASS_EQUAL(replacement, @"cb", "Replacement correct");
|
||||||
|
|
||||||
NSString *replMut = [NSMutableString stringWithString: @"ab"];
|
NSMutableString *replMut = [NSMutableString stringWithString: @"ab"];
|
||||||
[testObj replaceMatchesInString: replMut
|
[testObj replaceMatchesInString: replMut
|
||||||
options: 0
|
options: 0
|
||||||
range: NSMakeRange(0,2)
|
range: NSMakeRange(0,2)
|
||||||
|
@ -119,7 +119,7 @@ int main()
|
||||||
NSTextCheckingResult *r = [testObj firstMatchInString: @"ab"
|
NSTextCheckingResult *r = [testObj firstMatchInString: @"ab"
|
||||||
options: 0
|
options: 0
|
||||||
range: NSMakeRange(0,2)];
|
range: NSMakeRange(0,2)];
|
||||||
PASS(r, "Found NSTextCheckingResult");
|
PASS(r != nil, "Found NSTextCheckingResult");
|
||||||
replacement = @"should be unset on return";
|
replacement = @"should be unset on return";
|
||||||
replacement = [testObj replacementStringForResult: r
|
replacement = [testObj replacementStringForResult: r
|
||||||
inString: @"ab"
|
inString: @"ab"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue