techtonik Fri Nov 19 06:07:43 2004 EDT
Modified files:
/phpdoc/scripts genfuncindex.php
Log:
respect case-sensivity of OO stuff
http://cvs.php.net/diff.php/phpdoc/scripts/genfuncindex.php?r1=1.11&r2=1.12&ty=u
Index: phpdoc/scripts/genfuncindex.php
diff -u phpdoc/scripts/genfuncindex.php:1.11
phpdoc/scripts/genfuncindex.php:1.12
--- phpdoc/scripts/genfuncindex.php:1.11 Wed Dec 31 19:47:42 2003
+++ phpdoc/scripts/genfuncindex.php Fri Nov 19 06:07:43 2004
@@ -16,7 +16,7 @@
| Authors: Hartmut Holzgraefe <[EMAIL PROTECTED]> |
+----------------------------------------------------------------------+
- $Id: genfuncindex.php,v 1.11 2004/01/01 00:47:42 goba Exp $
+ $Id: genfuncindex.php,v 1.12 2004/11/19 11:07:43 techtonik Exp $
*/
echo "<" . "?xml version='1.0' encoding='iso-8859-1'?" . ">\n";
?>
@@ -26,22 +26,26 @@
<index id="index.functions">
<title>&FunctionIndex;</title>
<?php
-$letter=" ";
$functions = file($HTTP_SERVER_VARS['argv'][1]);
usort($functions,"strcasecmp");
+$letter = ' ';
foreach ( $functions as $funcentry ) {
- list($function,$description) = explode(" - ",$funcentry);
- $function=strtolower(trim($function));
- if(!ereg("^[[:alnum:]]",$function)) continue;
- if($function{0}!=$letter) {
- if($letter!=" ") {
- echo " </indexdiv>\n";
- }
- $letter=$function{0};
- echo " <indexdiv>\n";
- echo " <title>".strtoupper($letter)."</title>\n";
- }
- echo "
<indexentry><primaryie><function>$function</function></primaryie></indexentry>\n";
+ list($function,$description) = explode(" - ",$funcentry);
+
+ if (!ereg("::|->",$function)) {
+ strtolower(trim($function));
+ }
+ if (!ereg("^[[:alnum:]]",$function)) continue;
+
+ if (strtolower($function{0}) != $letter) {
+ if ($letter != ' ') {
+ echo " </indexdiv>\n";
+ }
+ $letter = strtolower($function{0});
+ echo " <indexdiv>\n";
+ echo " <title>".strtoupper($letter)."</title>\n";
+ }
+ echo "
<indexentry><primaryie><function>$function</function></primaryie></indexentry>\n";
}
?>
</indexdiv>