Document logging capabilities.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@14685 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2002-10-09 09:54:43 +00:00
parent d96905757a
commit 898a3fa1cd
5 changed files with 115 additions and 15 deletions

View file

@ -2097,16 +2097,17 @@ static BOOL snuggleStart(NSString *t)
&& [str isEqual: @"main"] == NO)
{
ok = YES;
if (len > r.location + 2)
if (len > NSMaxRange(r))
{
NSString *end;
end = [tmp substringFromIndex: r.location + 2];
end = [tmp substringFromIndex: NSMaxRange(r)];
c = [end characterAtIndex: 0];
if (c == ',' || c == '.' || c == ';')
{
[a insertObject: end atIndex: l + 1];
tmp = [tmp substringToIndex: r.location + 2];
tmp = [tmp substringToIndex: NSMaxRange(r)];
[a replaceObjectAtIndex: l withObject: tmp];
}
else
{