[Mathlib-commitlog] mathlib/Source/MathLib/Functions/String SubString.java, 1.5, 1.6 Blanks.java, 1
Status: Beta
Brought to you by:
st_mueller
|
From: Stefan M. <st_...@us...> - 2007-01-06 09:34:34
|
Update of /cvsroot/mathlib/mathlib/Source/MathLib/Functions/String In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv13134/Source/MathLib/Functions/String Modified Files: SubString.java Blanks.java Log Message: getValue() replaced by getValueRe() Index: Blanks.java =================================================================== RCS file: /cvsroot/mathlib/mathlib/Source/MathLib/Functions/String/Blanks.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** Blanks.java 30 Dec 2006 18:04:42 -0000 1.6 --- Blanks.java 6 Jan 2007 09:34:32 -0000 1.7 *************** *** 18,22 **** if(operands[0] instanceof NumberToken) { ! int length = (new Double(((NumberToken)operands[0]).getValue())).intValue(); StringBuffer buffer = new StringBuffer(length); --- 18,22 ---- if(operands[0] instanceof NumberToken) { ! int length = (new Double(((NumberToken)operands[0]).getValueRe())).intValue(); StringBuffer buffer = new StringBuffer(length); Index: SubString.java =================================================================== RCS file: /cvsroot/mathlib/mathlib/Source/MathLib/Functions/String/SubString.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** SubString.java 19 Nov 2006 16:15:52 -0000 1.5 --- SubString.java 6 Jan 2007 09:34:32 -0000 1.6 *************** *** 25,35 **** if(operands.length < 3 || operands[2] == null) { ! int pos = ((int)((NumberToken)operands[1]).getValue()); substring = argString.substring(pos); } else { ! int pos = ((int)((NumberToken)operands[1]).getValue()); ! int pos2 = ((int)((NumberToken)operands[2]).getValue()); substring = argString.substring(pos, pos2); } --- 25,35 ---- if(operands.length < 3 || operands[2] == null) { ! int pos = ((int)((NumberToken)operands[1]).getValueRe()); substring = argString.substring(pos); } else { ! int pos = ((int)((NumberToken)operands[1]).getValueRe()); ! int pos2 = ((int)((NumberToken)operands[2]).getValueRe()); substring = argString.substring(pos, pos2); } |