git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@4205 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
richard 1999-05-06 05:53:51 +00:00
parent 920aa1518c
commit 265ba163de

View file

@ -2666,10 +2666,19 @@ else
- (BOOL) isAbsolutePath - (BOOL) isAbsolutePath
{ {
if ([self length] > 0 && [self characterAtIndex: 0] == (unichar)'/') { if ([self length] == 0)
return YES;
}
return NO; return NO;
#if defined(__WIN32__) || defined(_WIN32)
if ([self indexOfString: @":"] != NSNotFound)
return YES;
#else
if ([self characterAtIndex: 0] == (unichar)'/')
return YES;
if ([self characterAtIndex: 0] == (unichar)'~')
return YES;
#endif
return NO;
} }
- (NSArray*) pathComponents - (NSArray*) pathComponents