commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Corey Scott <corey.sc...@gmail.com>
Subject Re: [lang] Is there a split method based on case?
Date Thu, 18 Nov 2004 04:39:55 GMT
I also had to recently do this, for the same reasons :-)

-Corey


On Thu, 18 Nov 2004 00:26:16 +0000 (GMT), Stephen Colebourne
<scolebourne@btopenworld.com> wrote:
> FYI, I recently had to write this same method to take
> resource keys and make more human readable sentences.
> So, maybe there is space for it in lang.
> 
> Stephen
> 
> --- Gary Gregory <ggregory@seagullsoftware.com>
> wrote:
> > Hello,
> >
> > This sounds like a job for regular expression
> > substitution: "replace all
> > uppercase chars with a space followed by that upper
> > case char".
> >
> > See the ORO project:
> > http://jakarta.apache.org/oro/index.html
> >
> > Gary
> >
> > -----Original Message-----
> > From: Eric Pugh
> > [mailto:epugh@opensourceconnections.com]
> > Sent: Wednesday, November 17, 2004 3:11 AM
> > To: Commons-Dev
> > Subject: [lang] Is there a split method based on
> > case?
> >
> > Hi all,
> >
> > I am converting some classnames to user friendly
> > names.  So I have a
> > class
> > call my.companies.own.SpecialStep and I can use the
> >
> substringAfterLast("my.companies.own.SpecialStep",".")
> > to return
> > "SpecialStep".  I want to convert this to "Special
> > Step".  Any ideas on
> > how
> > to do this using commons-lang?  If I had
> > AnotherSpecialStep, I'd want to
> > split it up so I got "Another Special Step".
> >
> > Would this be a good idea for commons-lang's
> > WordUtils?
> >
> > Eric
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > commons-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> > commons-dev-help@jakarta.apache.org
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > commons-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> > commons-dev-help@jakarta.apache.org
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message