You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by mo...@apache.org on 2001/08/20 10:13:52 UTC
cvs commit: xml-xalan/java/src/org/apache/xalan/xsltc/runtime BasisLibrary.java
morten 01/08/20 01:13:52
Modified: java/src/org/apache/xalan/xsltc/runtime BasisLibrary.java
Log:
A small fix for a cleanup I did in the basis library (it broke the
substring() function)>
PR: n/a
Obtained from: n/a
Submitted by: morten@xml.apache.org
Reviewed by: morten@xml.apache.org
Revision Changes Path
1.10 +2 -2 xml-xalan/java/src/org/apache/xalan/xsltc/runtime/BasisLibrary.java
Index: BasisLibrary.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/runtime/BasisLibrary.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- BasisLibrary.java 2001/08/17 13:17:45 1.9
+++ BasisLibrary.java 2001/08/20 08:13:52 1.10
@@ -1,5 +1,5 @@
/*
- * @(#)$Id: BasisLibrary.java,v 1.9 2001/08/17 13:17:45 morten Exp $
+ * @(#)$Id: BasisLibrary.java,v 1.10 2001/08/20 08:13:52 morten Exp $
*
* The Apache Software License, Version 1.1
*
@@ -240,7 +240,7 @@
public static String substringF(String value, double start) {
try {
final int strlen = value.length();
- int istart = (int)Math.round(start);
+ int istart = (int)Math.round(start) - 1;
if (Double.isNaN(start)) return(EMPTYSTRING);
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org