mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Tidied
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@4205 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c3bf69b7dd
commit
8b1836589b
1 changed files with 12 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue