#include <OOStringParsing.h>
Definition at line 70 of file OOStringParsing.h.
◆ pathHasExtension:
- (BOOL) pathHasExtension: |
|
(NSString *) | extension |
|
Definition at line 418 of file OOStringParsing.m.
337 :(NSString *)extension
338{
339 return [[self pathExtension] caseInsensitiveCompare:extension] == NSOrderedSame;
340}
References DESC, and nil.
◆ pathHasExtensionInArray:
- (BOOL) pathHasExtensionInArray: |
|
(NSArray *) | extensions |
|
Definition at line 418 of file OOStringParsing.m.
343 :(NSArray *)extensions
344{
345 NSEnumerator *extEnum =
nil;
346 NSString *extension =
nil;
347
348 for (extEnum = [extensions objectEnumerator]; (extension = [extEnum nextObject]); )
349 {
350 if ([[self pathExtension] caseInsensitiveCompare:extension] == NSOrderedSame) return YES;
351 }
352
353 return NO;
354}
The documentation for this category was generated from the following files: