mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +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
c313620c75
commit
53f2bdea0e
2 changed files with 30 additions and 4 deletions
|
@ -6,7 +6,8 @@
|
||||||
* Tools/AGSParser.[hm]: Add mechanism to return list of source
|
* Tools/AGSParser.[hm]: Add mechanism to return list of source
|
||||||
files on which a document depends.
|
files on which a document depends.
|
||||||
* Tools/gsdoc-0_6_7.dtd: Permit wider use of index element.
|
* 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
|
* Source/GNUmakefile (Base_AGSDOC_FLAGS): Remove the SourceDirectory
|
||||||
option ... now assumed to be the current directory for simplicity.
|
option ... now assumed to be the current directory for simplicity.
|
||||||
* Source/Base.gsdoc: Add class and protocol indexes.
|
* Source/Base.gsdoc: Add class and protocol indexes.
|
||||||
|
|
|
@ -797,10 +797,34 @@ static NSMutableSet *textNodes = nil;
|
||||||
{
|
{
|
||||||
NSString *ref = [a objectAtIndex: i];
|
NSString *ref = [a objectAtIndex: i];
|
||||||
NSDictionary *units = [dict objectForKey: ref];
|
NSDictionary *units = [dict objectForKey: ref];
|
||||||
NSArray *b = [units allKeys];
|
NSMutableArray *b = [[units allKeys] mutableCopy];
|
||||||
unsigned j;
|
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++)
|
for (j = 0; j < [b count]; j++)
|
||||||
{
|
{
|
||||||
NSString *u = [b objectAtIndex: j];
|
NSString *u = [b objectAtIndex: j];
|
||||||
|
@ -810,8 +834,9 @@ static NSMutableSet *textNodes = nil;
|
||||||
[buf appendFormat: @"<li><a rel=\"gsdoc\" href="];
|
[buf appendFormat: @"<li><a rel=\"gsdoc\" href="];
|
||||||
[buf appendFormat: @"\"%@.html#%@$%@%@%@\">",
|
[buf appendFormat: @"\"%@.html#%@$%@%@%@\">",
|
||||||
file, type, u, sep, ref];
|
file, type, u, sep, ref];
|
||||||
[buf appendFormat: @"%@ in %@</a></li>\n", ref, u];
|
[buf appendFormat: @"%@</a> in %@</li>\n", ref, u];
|
||||||
}
|
}
|
||||||
|
RELEASE(b);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue