didou Thu Jan 15 07:43:21 2004 EDT
Modified files:
/phpdoc/en/reference/sqlite/functions sqlite-create-aggregate.xml
sqlite-create-function.xml
sqlite-udf-decode-binary.xml
Log:
CS : Function declarations follow the 'one true brace' convention
Index: phpdoc/en/reference/sqlite/functions/sqlite-create-aggregate.xml
diff -u phpdoc/en/reference/sqlite/functions/sqlite-create-aggregate.xml:1.5
phpdoc/en/reference/sqlite/functions/sqlite-create-aggregate.xml:1.6
--- phpdoc/en/reference/sqlite/functions/sqlite-create-aggregate.xml:1.5 Tue
Jan 6 09:35:48 2004
+++ phpdoc/en/reference/sqlite/functions/sqlite-create-aggregate.xml Thu Jan 15
07:43:21 2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.5 $ -->
+<!-- $Revision: 1.6 $ -->
<refentry id="function.sqlite-create-aggregate">
<refnamediv>
<refname>sqlite_create_aggregate</refname>
@@ -56,13 +56,15 @@
sqlite_query($dbhandle, "INSERT INTO strings VALUES ('$str')");
}
-function max_len_step(&$context, $string) {
+function max_len_step(&$context, $string)
+{
if (strlen($string) > $context) {
$context = strlen($string);
}
}
-function max_len_finalize(&$context) {
+function max_len_finalize(&$context)
+{
return $context;
}
Index: phpdoc/en/reference/sqlite/functions/sqlite-create-function.xml
diff -u phpdoc/en/reference/sqlite/functions/sqlite-create-function.xml:1.7
phpdoc/en/reference/sqlite/functions/sqlite-create-function.xml:1.8
--- phpdoc/en/reference/sqlite/functions/sqlite-create-function.xml:1.7 Fri Dec 19
10:49:55 2003
+++ phpdoc/en/reference/sqlite/functions/sqlite-create-function.xml Thu Jan 15
07:43:21 2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.7 $ -->
+<!-- $Revision: 1.8 $ -->
<refentry id="function.sqlite-create-function">
<refnamediv>
<refname>sqlite_create_function</refname>
@@ -43,7 +43,8 @@
<programlisting role="php">
<![CDATA[
<?php
-function md5_and_reverse($string) {
+function md5_and_reverse($string)
+{
return strrev(md5($string));
}
Index: phpdoc/en/reference/sqlite/functions/sqlite-udf-decode-binary.xml
diff -u phpdoc/en/reference/sqlite/functions/sqlite-udf-decode-binary.xml:1.3
phpdoc/en/reference/sqlite/functions/sqlite-udf-decode-binary.xml:1.4
--- phpdoc/en/reference/sqlite/functions/sqlite-udf-decode-binary.xml:1.3 Thu
Dec 11 10:42:08 2003
+++ phpdoc/en/reference/sqlite/functions/sqlite-udf-decode-binary.xml Thu Jan 15
07:43:21 2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
<refentry id="function.sqlite-udf-decode-binary">
<refnamediv>
<refname>sqlite_udf_decode_binary</refname>
@@ -51,14 +51,16 @@
sqlite_query($db, "INSERT INTO strings VALUES ('$str')");
}
-function max_len_step(&$context, $string) {
+function max_len_step(&$context, $string)
+{
$string = sqlite_udf_decode_binary($string);
if (strlen($string) > $context) {
$context = strlen($string);
}
}
-function max_len_finalize(&$context) {
+function max_len_finalize(&$context)
+{
return $context;
}