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: [EMAIL PROTECTED]
Reviewed by: [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]