Revision: 29034
          http://sourceforge.net/p/bibdesk/svn/29034
Author:   hofman
Date:     2025-02-19 23:20:55 +0000 (Wed, 19 Feb 2025)
Log Message:
-----------
add nullability to AGRegEx objc classes

Modified Paths:
--------------
    trunk/bibdesk_vendorsrc/agkit_sourceforge/agregex/AGRegex.h

Modified: trunk/bibdesk_vendorsrc/agkit_sourceforge/agregex/AGRegex.h
===================================================================
--- trunk/bibdesk_vendorsrc/agkit_sourceforge/agregex/AGRegex.h 2025-02-19 
23:15:38 UTC (rev 29033)
+++ trunk/bibdesk_vendorsrc/agkit_sourceforge/agregex/AGRegex.h 2025-02-19 
23:20:55 UTC (rev 29034)
@@ -13,6 +13,8 @@
 #import <Foundation/NSObject.h>
 #import <Foundation/NSRange.h>
 
+NS_ASSUME_NONNULL_BEGIN
+
 @class AGRegex, NSArray, NSString;
 
 /*!
@@ -155,33 +157,33 @@
 /*!
 @method regexWithPattern:
 Creates a new regex using the given pattern string. Returns nil if the pattern 
string is invalid. */
-+ (id)regexWithPattern:(NSString *)pat;
++ (nullable id)regexWithPattern:(NSString *)pat;
 
 /*!
 @method regexWithPattern:options:
 Creates a new regex using the given pattern string and option flags. Returns 
nil if the pattern string is invalid. */
-+ (id)regexWithPattern:(NSString *)pat options:(NSInteger)opts;
++ (nullable id)regexWithPattern:(NSString *)pat options:(NSInteger)opts;
 
 
 /*!
 @method initWithPattern:
 Initializes the regex using the given pattern string. Returns nil if the 
pattern string is invalid. */
-- (id)initWithPattern:(NSString *)pat;
+- (nullable id)initWithPattern:(NSString *)pat;
 
 /*!
 @method initWithPattern:options:
 Initializes the regex using the given pattern string and option flags. Returns 
nil if the pattern string is invalid. */
-- (id)initWithPattern:(NSString *)pat options:(NSInteger)opts;
+- (nullable id)initWithPattern:(NSString *)pat options:(NSInteger)opts;
 
 /*!
 @method findInString:
 Calls findInString:range: using the full range of the target string. */
-- (AGRegexMatch *)findInString:(NSString *)str;
+- (nullable AGRegexMatch *)findInString:(NSString *)str;
 
 /*!
 @method findInString:range:
 Returns an AGRegexMatch for the first occurrence of the regex in the given 
range of the target string or nil if none is found. */
-- (AGRegexMatch *)findInString:(NSString *)str range:(NSRange)r;
+- (nullable AGRegexMatch *)findInString:(NSString *)str range:(NSRange)r;
 
 /*!
 @method findAllInString:
@@ -226,3 +228,5 @@
 - (NSArray *)splitString:(NSString *)str limit:(NSInteger)lim;
 
 @end
+
+NS_ASSUME_NONNULL_END

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Bibdesk-commit mailing list
Bibdesk-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to