W3C home > Mailing lists > Public > www-validator-cvs@w3.org > December 2009

2002/css-validator/org/w3c/css/values CssExpression.java,1.6,1.7

From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
Date: Wed, 09 Dec 2009 17:21:52 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1NIQEa-0002vr-Sv@lionel-hutz.w3.org>
Update of /sources/public/2002/css-validator/org/w3c/css/values
In directory hutz:/tmp/cvs-serv11257

Modified Files:
	CssExpression.java 
Log Message:
added a method to get thenumber of remaining elements to be matched


Index: CssExpression.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/values/CssExpression.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- CssExpression.java	25 Mar 2008 18:30:11 -0000	1.6
+++ CssExpression.java	9 Dec 2009 17:21:50 -0000	1.7
@@ -94,6 +94,13 @@
     }
 
     /**
+     * Returns the number of remaining elements
+     */
+    public int getRemainingCount() {
+	return count-index;
+    }
+
+    /**
      * Insert the current value at the current position.
      *
      * @param value The value to insert
Received on Wednesday, 9 December 2009 17:21:54 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:55:16 GMT