Point
taken - I was thinking of the last time I had to do this and I was parsing the
string for HTML tags and other strange content at the time and converting the
computer-friendly stuff to human-friendly stuff as I went.
It is
more efficient to start at the required length and work backwards if you can
depend on arraycopy (substring) to move chars for you.
db
____________________________________________________-----Original Message-----
From: Roger Glover [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 21, 2003 2:34 PM
To: JDJList
Subject: [jdjlist] RE: String segmentation??? (was: RE: Slow: string += s tring)RE: "A look at the source code..."Take another look. :^) The method does not "iterate through" to "the required line length", it *starts* at the required line length and then iterates backward looking for whitespace.-- Roger
To change your JDJList options, please visit:
http://www.sys-con.com/java/list.cfm
Be respectful! Clean up your posts before replying
____________________________________________________
