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 Frith-MacDonald 1999-05-06 05:53:51 +00:00
parent c3bf69b7dd
commit 8b1836589b

View file

@ -2666,10 +2666,19 @@ else
- (BOOL) isAbsolutePath
{
if ([self length] > 0 && [self characterAtIndex: 0] == (unichar)'/') {
return YES;
}
if ([self length] == 0)
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