Revision: 20493 http://sourceforge.net/p/jmol/code/20493 Author: hansonr Date: 2015-05-11 09:37:40 +0000 (Mon, 11 May 2015) Log Message: ----------- JavaScript-compatible StringBuffer (javajs.util.SB) upgade
Modified Paths: -------------- trunk/Jmol/src/javajs/util/SB.java Modified: trunk/Jmol/src/javajs/util/SB.java =================================================================== --- trunk/Jmol/src/javajs/util/SB.java 2015-05-08 11:15:17 UTC (rev 20492) +++ trunk/Jmol/src/javajs/util/SB.java 2015-05-11 09:37:40 UTC (rev 20493) @@ -324,4 +324,19 @@ return b; } + public void replace(int start, int end, String str) { + /** + * @j2sNative + * + * this.s = this.s.substring(0, start) + str + this.s.substring(end); + */ + { + sb.replace(start, end, str); + } + } + + public void insert(int offset, String str) { + replace(offset, offset, str); + } + } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y _______________________________________________ Jmol-commits mailing list Jmol-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-commits