mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Improve method indexing.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@12000 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
59de9afc02
commit
84c68e4766
2 changed files with 30 additions and 4 deletions
|
@ -6,7 +6,8 @@
|
|||
* Tools/AGSParser.[hm]: Add mechanism to return list of source
|
||||
files on which a document depends.
|
||||
* Tools/gsdoc-0_6_7.dtd: Permit wider use of index element.
|
||||
* Tools/AGSHtml.m: ditto
|
||||
* Tools/AGSHtml.m: ditto, and support indexing of category methods
|
||||
along with class methods.
|
||||
* Source/GNUmakefile (Base_AGSDOC_FLAGS): Remove the SourceDirectory
|
||||
option ... now assumed to be the current directory for simplicity.
|
||||
* Source/Base.gsdoc: Add class and protocol indexes.
|
||||
|
|
|
@ -797,10 +797,34 @@ static NSMutableSet *textNodes = nil;
|
|||
{
|
||||
NSString *ref = [a objectAtIndex: i];
|
||||
NSDictionary *units = [dict objectForKey: ref];
|
||||
NSArray *b = [units allKeys];
|
||||
NSMutableArray *b = [[units allKeys] mutableCopy];
|
||||
unsigned j;
|
||||
|
||||
b = [b sortedArrayUsingSelector: @selector(compare:)];
|
||||
if (unit != nil)
|
||||
{
|
||||
/*
|
||||
* Remove any listing for methods not in the
|
||||
* current unit or in categories of the
|
||||
* current class.
|
||||
*/
|
||||
for (j = 0; j < [b count]; j++)
|
||||
{
|
||||
NSString *u = [b objectAtIndex: j];
|
||||
|
||||
if ([unit isEqual: u] == NO)
|
||||
{
|
||||
if ([unit hasSuffix: @")"] == NO
|
||||
&& [u hasPrefix: unit] == YES
|
||||
&& [u characterAtIndex: [unit length]]
|
||||
== '(')
|
||||
{
|
||||
continue;
|
||||
}
|
||||
[b removeObjectAtIndex: j--];
|
||||
}
|
||||
}
|
||||
}
|
||||
[b sortUsingSelector: @selector(compare:)];
|
||||
for (j = 0; j < [b count]; j++)
|
||||
{
|
||||
NSString *u = [b objectAtIndex: j];
|
||||
|
@ -810,8 +834,9 @@ static NSMutableSet *textNodes = nil;
|
|||
[buf appendFormat: @"<li><a rel=\"gsdoc\" href="];
|
||||
[buf appendFormat: @"\"%@.html#%@$%@%@%@\">",
|
||||
file, type, u, sep, ref];
|
||||
[buf appendFormat: @"%@ in %@</a></li>\n", ref, u];
|
||||
[buf appendFormat: @"%@</a> in %@</li>\n", ref, u];
|
||||
}
|
||||
RELEASE(b);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue