mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
Some tidyups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@7456 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
122b12a894
commit
0deff55b4e
3 changed files with 13 additions and 7 deletions
|
@ -190,14 +190,12 @@ static Class NSMutableAttributedString_concrete_class;
|
|||
NSDictionary *attrs;
|
||||
NSMutableString *desc;
|
||||
|
||||
desc = AUTORELEASE([[super description] mutableCopy]);
|
||||
[desc appendFormat: @" Length: %u", length];
|
||||
desc = [[NSMutableString alloc] init];
|
||||
while (index < length &&
|
||||
(attrs = [self attributesAtIndex: index effectiveRange: &r]) != nil)
|
||||
{
|
||||
index = NSMaxRange(r);
|
||||
[desc appendFormat: @"\nRange: %@ Chars:'%@' Attrs: %@",
|
||||
NSStringFromRange(r), [string substringFromRange: r], attrs];
|
||||
[desc appendFormat: @"%@%@", [string substringFromRange: r], attrs];
|
||||
}
|
||||
return desc;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue