Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ecf-dev] Splitting an old String

Scott,

It's clearly time for distributed OSGi to connect all those poor separated StringUtils classes all over the world!

Imagine that: teamsters for StringUtils workers ;)

Best regards,
Dann

Scott Lewis wrote:
Hi Folks,

FWIW, ECF has a StringUtils class with several split methods (as well as others). It was created just to allow usage on Foundation 1.1 and/or 1.0 environments. It's in org.eclipse.ecf.util.StringUtils.

Scott


Wim Jongman wrote:
Hi Thomas,

Thanks for the pointer. There is currently a bug to get these classes out of the API: https://bugs.eclipse.org/bugs/show_bug.cgi?id=208965 I will respond to that bug to see if there is an opening for this.

Met vriendelijke groet,
Wim Jongman

Remain Software (http://remainsoftware.com)
http://twitter.com/remainsoftware
http://twitter.com/wimjongman

On Sun, Oct 18, 2009 at 11:10 PM, Thomas Hallgren <thomas@xxxxxxx <mailto:thomas@xxxxxxx>> wrote:

    Hi Wim,
    I suggest you copy:

    String[] StringHelper.getArrayFromString(String srr, char delim)

    It's a fairly optimized split method (much faster then using
    StringTokenizer or regexp). You'll find it in the the
    org.eclipse.equinox.internal.p2.core.helpers package. Perhaps also
    issue a bugzilla for moving helper methods like that into a
    package common to all runtime bundles.

    Regards,
    Thomas Hallgren



    On 10/18/2009 09:38 PM, Wim Jongman wrote:
    Hi,
I have almost ironed out the downport to foundation 1.1 for the core NNTP
    classes. But i have troubles replacing String.split(regex). I tried
    Stringtokenizer but this class fails to correctly split
    "xxx\txxx\t\txxx" into fours strings with \t as the token.

I don't want to write the millionth String splitter class. Is there one
    already available that works with foundation 1.1?

    _______________________________________________
    ecf-dev mailing list
    ecf-dev@xxxxxxxxxxx <mailto:ecf-dev@xxxxxxxxxxx>
    https://dev.eclipse.org/mailman/listinfo/ecf-dev


    _______________________________________________
    ecf-dev mailing list
    ecf-dev@xxxxxxxxxxx <mailto:ecf-dev@xxxxxxxxxxx>
    https://dev.eclipse.org/mailman/listinfo/ecf-dev




------------------------------------------------------------------------

_______________________________________________
ecf-dev mailing list
ecf-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ecf-dev

_______________________________________________
ecf-dev mailing list
ecf-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ecf-dev




Back to the top