• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: String manipulation using jakarta.commons.lang [SOLVED]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >String manipulation using jakarta.commons.lang (From: Dev WO <email@hidden>)

  • Prev by Date: Re: Framework Question
  • Next by Date: WEBOBJECTS 5.3
  • Previous by thread: String manipulation using jakarta.commons.lang
  • Next by thread: JDBC in WO
  • Index(es):
    • Date
    • Thread