Re: cvs: phpdoc /scripts genfuncindex.php
| From: | Mehdi Achour | Date: | Sat, 20 Nov 2004 09:56:04 +0000 |
| Subject: | Re: cvs: phpdoc /scripts genfuncindex.php | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969365148@lists.php.net to get a copy of this message | ||
Hello Techtonik,
techtonik Fri Nov 19 06:07:43 2004 EDTModified 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 [..]
+$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";Maybe you want to do something with the return value of strtolower here ? didou+ list($function,$description) = explode(" - ",$funcentry);++ if (!ereg("::|->",$function)) { + strtolower(trim($function)); + }