#1 NSError support for AGRegex

open
nobody
None
5
2005-10-11
2005-10-11
Sherm Pendley
No

This patch adds two new methods to AGRegex:

+ (id)regexWithPattern:(NSString *)pat options:(int)opts error:(NSError
**)error;
- (id)initWithPattern:(NSString *)pat options:(int)opts error:(NSError **)
error;

If pattern compilation fails, and error is non-null, an NSError object is
created with the error message returned by pcre_compile(), and
returned in the NSError* pointed to by error.

Also, Controller.m is modified to use this, creating and displaying an
NSAlert with the returned NSError.

Discussion

  • Sherm Pendley
    Sherm Pendley
    2005-10-11

    NSError support for AGRegex

     
    Attachments