mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
minor fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17160 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
6284e2fd88
commit
9d74ca8ad3
4 changed files with 78 additions and 43 deletions
|
@ -393,11 +393,26 @@ static NSMutableSet *textNodes = nil;
|
|||
{
|
||||
NSString *catName = [catNames objectAtIndex: i];
|
||||
NSDictionary *catDict;
|
||||
NSString *cName;
|
||||
NSEnumerator *enumerator;
|
||||
NSString *mname;
|
||||
|
||||
catName = [classname stringByAppendingFormat: @"(%@)",
|
||||
cName = [classname stringByAppendingFormat: @"(%@)",
|
||||
catName];
|
||||
catDict = [unitDict objectForKey: catName];
|
||||
[m addEntriesFromDictionary: catDict];
|
||||
catDict = [unitDict objectForKey: cName];
|
||||
enumerator = [catDict keyEnumerator];
|
||||
/*
|
||||
* Add category references to the dictionary,
|
||||
* prefixing them with the category they belong to.
|
||||
*/
|
||||
while ((mname = [enumerator nextObject]) != nil)
|
||||
{
|
||||
NSString *file = [catDict objectForKey: mname];
|
||||
NSString *ref = [NSString stringWithFormat:
|
||||
@"(%@)%@", catName, mname];
|
||||
|
||||
[m setObject: file forKey: ref];
|
||||
}
|
||||
}
|
||||
dict = AUTORELEASE(m);
|
||||
}
|
||||
|
@ -421,6 +436,16 @@ static NSMutableSet *textNodes = nil;
|
|||
NSString *file = [dict objectForKey: ref];
|
||||
NSString *text = ref;
|
||||
|
||||
/*
|
||||
* If a reference to a method contains a leading catergory name,
|
||||
* we don't want it in the visiable method name.
|
||||
*/
|
||||
if ([text hasPrefix: @"("] == YES)
|
||||
{
|
||||
NSRange r = [text rangeOfString: @")"];
|
||||
text = [text substringFromIndex: NSMaxRange(r)];
|
||||
}
|
||||
|
||||
[buf appendString: indent];
|
||||
[buf appendString: @"<li><a rel=\"gsdoc\" href="];
|
||||
if (isInUnit == YES)
|
||||
|
|
|
@ -408,12 +408,17 @@
|
|||
*end++ = '\n';
|
||||
|
||||
/*
|
||||
* If next line in the comment starts with whitespace followed
|
||||
* If second line in the comment starts with whitespace followed
|
||||
* by an asterisk, we assume all the lines in the comment start
|
||||
* in a similar way, and everything up to and including the
|
||||
* asterisk on each line should be stripped.
|
||||
* Otherwise we take the comment verbatim.
|
||||
*/
|
||||
while (ptr < end && *ptr != '\n')
|
||||
{
|
||||
ptr++;
|
||||
}
|
||||
ptr++; // Step past the end of the first line.
|
||||
while (ptr < end)
|
||||
{
|
||||
unichar c = *ptr++;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue