Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: TextDisplayFormatter.java - any updates? where can gnu.regexp be found?



On Oct 9, 2006, at 5:51 AM, Matt Kime wrote:

I'm attempting to use TextDisplayFormatter.java in order to solve the
common problem of creating a string formatter to insert html paragraph
breaks on WOString. I've attempted to use the code as found here -

http://wocode.com/cgi-bin/WebObjects/WOCode.woa/2/wa/ShareCodeItem? itemId=352

It requires gnu.regexp but I can't find anywhere to download it. I
suspect that its functionality has been moved into a different package
a couple of times.

What have people done to get this to work? Or is there a better way than this?

Back when TextDisplayFormatter.java was written, the standard J2SE distribution didn't contain a regular expression implementation as it does now: java.util.regex. When I have come across Java source that requires a third-party regular expression implementation, I've been substituting the third-party regular expression methods with java.util.regex methods so that the third-party library is no longer needed.


Aloha,
Art

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/email@hidden

This email sent to email@hidden
References: 
 >TextDisplayFormatter.java - any updates? where can gnu.regexp be found? (From: "Matt Kime" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.