Oolite 1.91.0.7644-241112-7f5034b
Loading...
Searching...
No Matches
NSString(OOUtilities) Category Reference

#include <OOStringParsing.h>

Instance Methods

(BOOL) - pathHasExtension:
 
(BOOL) - pathHasExtensionInArray:
 

Detailed Description

Definition at line 70 of file OOStringParsing.h.

Method Documentation

◆ 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}
return nil

The documentation for this category was generated from the following files: