mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 16:50:58 +00:00
2001-12-11 Manuel Guesdon <mguesdon@orange-concept.com>
* Source/NSString.m: corrected bug in +stringByTrimmingSpaces (there was an exception when the string contains only spaces). git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@11701 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
111faf43f3
commit
1923113da0
2 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2001-12-11 Manuel Guesdon <mguesdon@orange-concept.com>
|
||||||
|
|
||||||
|
* Source/NSString.m: corrected bug in +stringByTrimmingSpaces
|
||||||
|
(there was an exception when the string contains only spaces).
|
||||||
|
|
||||||
2001-12-08 Richard Frith-Macdonald <rfm@gnu.org>
|
2001-12-08 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* Documentation/gsdoc/NSDistantObjectRequest.gsdoc: note that the
|
* Documentation/gsdoc/NSDistantObjectRequest.gsdoc: note that the
|
||||||
|
|
|
@ -3673,7 +3673,10 @@ handle_printf_atsign (FILE *stream,
|
||||||
}
|
}
|
||||||
if (start > 0 || end < length-1)
|
if (start > 0 || end < length-1)
|
||||||
{
|
{
|
||||||
return [self substringFromRange: NSMakeRange(start, end + 1 - start)];
|
if (start<end)
|
||||||
|
return [self substringFromRange: NSMakeRange(start, end + 1 - start)];
|
||||||
|
else
|
||||||
|
return [NSStringClass string];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return self;
|
return self;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue