Author: wyoung
Date: Sat Oct 27 08:37:20 2007
New Revision: 1804

URL: http://svn.gna.org/viewcvs/mysqlpp?rev=1804&view=rev
Log:
Renamed NullisNull to NullIsNull -- capital I -- and similar for
NullisZero and NullisBlank.

Modified:
    trunk/doc/userman/userman.dbx
    trunk/lib/null.h

Modified: trunk/doc/userman/userman.dbx
URL: 
http://svn.gna.org/viewcvs/mysqlpp/trunk/doc/userman/userman.dbx?rev=1804&r1=1803&r2=1804&view=diff
==============================================================================
--- trunk/doc/userman/userman.dbx (original)
+++ trunk/doc/userman/userman.dbx Sat Oct 27 08:37:20 2007
@@ -792,16 +792,16 @@
         you don't like this behavior, you can change it, by
         passing a different value for the second parameter to
         template <classname>Null</classname>. By default, this
-        parameter is <ulink type="structref" url="NullisNull"/>,
+        parameter is <ulink type="structref" url="NullIsNull"/>,
         meaning that we should enforce the uniqueness of the null
         type. To relax this distinction, you can instantiate the
         <classname>Null</classname> template with a different
-        behavior type: <ulink type="structref" url="NullisZero"/>
-        or <ulink type="structref" url="NullisBlank"/>. Consider
+        behavior type: <ulink type="structref" url="NullIsZero"/>
+        or <ulink type="structref" url="NullIsBlank"/>. Consider
         this code:</para>
 
         <programlisting>
-mysqlpp::Null&lt;unsigned char, mysqlpp::NullisZero&gt; myfield;
+mysqlpp::Null&lt;unsigned char, mysqlpp::NullIsZero&gt; myfield;
 
 myfield = mysqlpp::null;
 cout &lt;&lt; myfield &lt;&lt; endl;

Modified: trunk/lib/null.h
URL: 
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/null.h?rev=1804&r1=1803&r2=1804&view=diff
==============================================================================
--- trunk/lib/null.h (original)
+++ trunk/lib/null.h Sat Oct 27 08:37:20 2007
@@ -6,10 +6,10 @@
 /// the same as SQL nulls.
 
 /***********************************************************************
- Copyright (c) 1998 by Kevin Atkinson, (c) 1999, 2000 and 2001 by
- MySQL AB, and (c) 2004, 2005 by Educational Technology Resources, Inc.
- Others may also hold copyrights on code in this file.  See the CREDITS
- file in the top directory of the distribution for details.
+ Copyright (c) 1998 by Kevin Atkinson, (c) 1999-2001 by MySQL AB, and
+ (c) 2004-2007 by Educational Technology Resources, Inc.  Others may
+ also hold copyrights on code in this file.  See the CREDITS file in
+ the top directory of the distribution for details.
 
  This file is part of MySQL++.
 
@@ -68,7 +68,7 @@
 /// "(NULL)" when you insert it into a C++ stream.
 ///
 /// Used for the behavior parameter for template Null
-struct NullisNull
+struct NullIsNull
 {
 #if !defined(DOXYGEN_IGNORE)
 // Doxygen will not generate documentation for this section.
@@ -89,7 +89,7 @@
 /// into a C++ stream.
 ///
 /// Used for the behavior parameter for template Null
-struct NullisZero
+struct NullIsZero
 {
 #if !defined(DOXYGEN_IGNORE)
 // Doxygen will not generate documentation for this section.
@@ -109,7 +109,7 @@
 /// it into a C++ stream.
 ///
 /// Used for the behavior parameter for template Null
-struct NullisBlank
+struct NullIsBlank
 {
 #if !defined(DOXYGEN_IGNORE)
 // Doxygen will not generate documentation for this section.
@@ -143,7 +143,7 @@
 /// for a null \c int is different than for a null \c string, to pick
 /// two random examples.  See type_info.cpp for the table SQL types that
 /// can be null.
-template <class Type, class Behavior = NullisNull> class Null
+template <class Type, class Behavior = NullIsNull> class Null
 {
 public:
        /// \brief The object's value, when it is not SQL null
@@ -197,7 +197,7 @@
        ///
        /// If is_null is set, returns whatever we consider that null "is",
        /// according to the Behavior parameter you used when instantiating
-       /// this template.  See NullisNull, NullisZero and NullisBlank.
+       /// this template.  See NullIsNull, NullIsZero and NullIsBlank.
        ///
        /// Otherwise, just returns the 'data' member.
        operator Type&()


_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits

Reply via email to