hholzgra Thu Nov 22 16:38:19 2001 EDT
Added files:
/phpdoc genfuncindex.in genfuncindex.php
Modified files:
/phpdoc configure.in funcindex.xml
Log:
function index generation tools
Index: phpdoc/configure.in
diff -u phpdoc/configure.in:1.84 phpdoc/configure.in:1.85
--- phpdoc/configure.in:1.84 Sat Nov 17 13:16:28 2001
+++ phpdoc/configure.in Thu Nov 22 16:38:18 2001
@@ -1,6 +1,6 @@
-dnl $Id: configure.in,v 1.84 2001/11/17 18:16:28 derick Exp $
+dnl $Id: configure.in,v 1.85 2001/11/22 21:38:18 hholzgra Exp $
AC_INIT(global.ent)
@@ -417,7 +417,7 @@
dnl keep in one line for win32
-AC_OUTPUT(Makefile version.ent checkdoc common.dsl howto.dsl html.dsl html-locale.dsl
install.dsl print.dsl phpweb.dsl quickref.dsl manual.xml html.xsl bightml.xsl
print.xsl htmlhelp.xsl)
+AC_OUTPUT(Makefile version.ent checkdoc common.dsl howto.dsl html.dsl html-locale.dsl
+install.dsl print.dsl phpweb.dsl quickref.dsl manual.xml html.xsl bightml.xsl
+print.xsl htmlhelp.xsl genfuncindex)
chmod +x checkdoc
@@ -486,4 +486,5 @@
echo "<!ENTITY $name SYSTEM \"$file\">" >> chapters.ent
done
chmod a-w chapters.ent
-
+
+chmod a+x genfuncindex
Index: phpdoc/funcindex.xml
diff -u phpdoc/funcindex.xml:1.2 phpdoc/funcindex.xml:1.3
--- phpdoc/funcindex.xml:1.2 Sun Nov 18 19:27:18 2001
+++ phpdoc/funcindex.xml Thu Nov 22 16:38:18 2001
@@ -1,7 +1,7 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
- <!-- $Revision: -->
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!-- do not edit this file, it was auto genereated genfuncindex.php -->
<index id="index.functions">
- <title>Function Index</title>
+ <title>&FunctionIndex;</title>
<indexdiv>
<title>A</title>
<indexentry><primaryie><function>abs</function></primaryie></indexentry>
@@ -1425,7 +1425,6 @@
<title>P</title>
<indexentry><primaryie><function>pack</function></primaryie></indexentry>
<indexentry><primaryie><function>parse_ini_file</function></primaryie></indexentry>
- <indexentry><primaryie><function>parse_str</function></primaryie></indexentry>
<indexentry><primaryie><function>parse_url</function></primaryie></indexentry>
<indexentry><primaryie><function>passthru</function></primaryie></indexentry>
<indexentry><primaryie><function>pathinfo</function></primaryie></indexentry>
@@ -2094,6 +2093,8 @@
<indexentry><primaryie><function>variant</function></primaryie></indexentry>
<indexentry><primaryie><function>version_compare</function></primaryie></indexentry>
<indexentry><primaryie><function>virtual</function></primaryie></indexentry>
+ <indexentry><primaryie><function>vprintf</function></primaryie></indexentry>
+ <indexentry><primaryie><function>vsprintf</function></primaryie></indexentry>
</indexdiv>
<indexdiv>
<title>W</title>
Index: phpdoc/genfuncindex.in
+++ phpdoc/genfuncindex.in
#!/bin/sh
#
# +----------------------------------------------------------------------+
# | PHP HTML Embedded Scripting Language Version 3.0 |
# +----------------------------------------------------------------------+
# | Copyright (c) 1997,1998 PHP Development Team (See Credits file) |
# +----------------------------------------------------------------------+
# | This program is free software; you can redistribute it and/or modify |
# | it under the terms of one of the following licenses: |
# | |
# | A) the GNU General Public License as published by the Free Software |
# | Foundation; either version 2 of the License, or (at your option) |
# | any later version. |
# | |
# | B) the PHP License as published by the PHP Development Team and |
# | included in the distribution in the file: LICENSE |
# | |
# | This program is distributed in the hope that it will be useful, |
# | but WITHOUT ANY WARRANTY; without even the implied warranty of |
# | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
# | GNU General Public License for more details. |
# | |
# | You should have received a copy of both licenses referred to here. |
# | If you did not, or have any questions about PHP licensing, please |
# | contact [EMAIL PROTECTED] |
# +----------------------------------------------------------------------+
# | Authors: Hartmut Holzgraefe <[EMAIL PROTECTED]> |
# +----------------------------------------------------------------------+
#
# $Id: genfuncindex.in,v 1.1 2001/11/22 21:38:18 hholzgra Exp $
php -q -d short_tags=off genfuncindex.php quickref.txt @ENCODING@ > funcindex.xml
Index: phpdoc/genfuncindex.php
+++ phpdoc/genfuncindex.php
<?php
/*
#
# +----------------------------------------------------------------------+
# | PHP HTML Embedded Scripting Language Version 3.0 |
# +----------------------------------------------------------------------+
# | Copyright (c) 1997,1998 PHP Development Team (See Credits file) |
# +----------------------------------------------------------------------+
# | This program is free software; you can redistribute it and/or modify |
# | it under the terms of one of the following licenses: |
# | |
# | A) the GNU General Public License as published by the Free Software |
# | Foundation; either version 2 of the License, or (at your option) |
# | any later version. |
# | |
# | B) the PHP License as published by the PHP Development Team and |
# | included in the distribution in the file: LICENSE |
# | |
# | This program is distributed in the hope that it will be useful, |
# | but WITHOUT ANY WARRANTY; without even the implied warranty of |
# | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
# | GNU General Public License for more details. |
# | |
# | You should have received a copy of both licenses referred to here. |
# | If you did not, or have any questions about PHP licensing, please |
# | contact [EMAIL PROTECTED] |
# +----------------------------------------------------------------------+
# | Authors: Hartmut Holzgraefe <[EMAIL PROTECTED]> |
# +----------------------------------------------------------------------+
#
# $Id: genfuncindex.php,v 1.1 2001/11/22 21:38:18 hholzgra Exp $
*/
echo "<?xml version=\"1.0\" encoding=\"$argv[2]\" ?>\n";
echo "<!-- do not edit this file, it was auto genereated $argv[0] -->\n";
?>
<index id="index.functions">
<title>&FunctionIndex;</title>
<?php
$letter=" ";
$functions = file($argv[1]);
usort($functions,"strcasecmp");
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";
}
?>
</indexdiv>
</index>