activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r599953 - in /activemq/activemq-cpp/decaf/trunk/src/main/decaf/lang: CharSequence.h Math.h
Date Fri, 30 Nov 2007 20:42:51 GMT
Author: tabish
Date: Fri Nov 30 12:42:50 2007
New Revision: 599953

URL: http://svn.apache.org/viewvc?rev=599953&view=rev
Log:
http://issues.apache.org/activemq/browse/AMQCPP-103

Starting the NIO implementation

Modified:
    activemq/activemq-cpp/decaf/trunk/src/main/decaf/lang/CharSequence.h
    activemq/activemq-cpp/decaf/trunk/src/main/decaf/lang/Math.h

Modified: activemq/activemq-cpp/decaf/trunk/src/main/decaf/lang/CharSequence.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/decaf/trunk/src/main/decaf/lang/CharSequence.h?rev=599953&r1=599952&r2=599953&view=diff
==============================================================================
--- activemq/activemq-cpp/decaf/trunk/src/main/decaf/lang/CharSequence.h (original)
+++ activemq/activemq-cpp/decaf/trunk/src/main/decaf/lang/CharSequence.h Fri Nov 30 12:42:50
2007
@@ -62,8 +62,8 @@
          * @returns a new CharSequence
          * @throws IndexOutOfBoundsException if start or end > length()
          */
-        virtual CharSequence* subSequence( std::size_t start, std::size_t end )
-            throw( lang::exceptions::IndexOutOfBoundsException )= 0;
+        virtual CharSequence* subSequence( std::size_t start, std::size_t end ) const
+            throw( lang::exceptions::IndexOutOfBoundsException ) = 0;
 
         /**
          * @returns the string representation of this CharSequence

Modified: activemq/activemq-cpp/decaf/trunk/src/main/decaf/lang/Math.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/decaf/trunk/src/main/decaf/lang/Math.h?rev=599953&r1=599952&r2=599953&view=diff
==============================================================================
--- activemq/activemq-cpp/decaf/trunk/src/main/decaf/lang/Math.h (original)
+++ activemq/activemq-cpp/decaf/trunk/src/main/decaf/lang/Math.h Fri Nov 30 12:42:50 2007
@@ -361,6 +361,19 @@
         }
 
         /**
+         * Returns the smaller of two <code>unsigned int</code> values. That
is,
+         * the result the argument closer to the value of
+         * <code>Integer::MIN_VALUE</code>.  If the arguments have the same
+         * value, the result is that same value.
+         * @param a - an argument.
+         * @param b - another argument.
+         * @return the smaller of <code>a</code> and <code>b</code>.
+         */
+        static int min( unsigned int a, unsigned int b ) {
+            return ( a <= b ? a : b );
+        }
+
+        /**
          * Returns the smaller of two <code>long long</code> values. That is,
          * the result the argument closer to the value of
          * <code>Long::MIN_VALUE</code>.  If the arguments have the same



Mime
View raw message