Re: String manipulation using jakarta.commons.lang [SOLVED]
Re: String manipulation using jakarta.commons.lang [SOLVED]
- Subject: Re: String manipulation using jakarta.commons.lang [SOLVED]
- From: Dev WO <email@hidden>
- Date: Sun, 3 Jul 2005 10:49:45 +0200
Thanks Enrique and Art,
both solutions work perfectly.
Xavier
Hi Xavier,
Try this:
char[] separators = { '-', ' ' };
WordUtils.capitalizeFully( aString, separators );
This way will convert, i.e. "asdf-asdf asdf-asdf" into "Asdf-Asdf
Asdf-Asdf".
Hope this help.
Henrique
Dev WO wrote:
Hi,
following M. Teran's advice, I took some time to check
jakarta.commons.lang to manipulate Strings.
I'm trying to use capitalizeFully with delimiters, but when I
follow the syntax provided in the API documentation, I got an
"illegal start of expression"...
Here's what I've tried:
WordUtils.capitalizeFully(aString, {'-'})
WordUtils.capitalizeFully(aString, new char[-])
If I use this syntax:
WordUtils.capitalizeFully(aString, null)
It worked and capitalize after every whitespace, but I also need
after '-' so I just can't figure out...
I probably miss something obvious but I don't see it;)
Thanks
Xavier
_______________________________________________
WebObjects-dev mailing list
email@hidden
http://www.omnigroup.com/mailman/listinfo/webobjects-dev
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden