Yeah, I can see the use in code generation. I was +1ing mostly to Henri's comment that it seems a bit specific for StringUtils.
Steven Caswell [EMAIL PROTECTED] a.k.a Mungo Knotwise of Michel Delving "One ring to rule them all, one ring to find them..." > -----Original Message----- > From: Steve Downey [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 05, 2003 9:06 PM > To: Jakarta Commons Developers List; [EMAIL PROTECTED] > Subject: Re: [lang] Adding Purple to StringUtils > > > From: "Steven Caswell" <[EMAIL PROTECTED]> > To: "'Jakarta Commons Developers List'" > <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > Sent: Wednesday, March 05, 2003 4:54 PM > Subject: RE: [lang] Adding Purple to StringUtils > > > > I mostly agree with Henri's comments. Just a couple of additional > > comments thrown in... > > > > > > <snip/> > > > > > * toUnderscore > > > > > > > > Converts camelCaseVersusC to camel_case_versus_c > > > > > > > > I'd love to get some ideas on a better name for this. > > > Also, it'd be > > > > nice to have a full, symmetrical set of camelCase vs. > > > under_score vs. > > > > CONSTANT_NAMING vs. "separate words" naming style converters. > > > > > > Hmm. Probably a bit specific for StringUtils. Do people > often need > > > this? > > > > +1 to Henri's comment. Seems beyond StringUtils scope. > > > > Well, if you do any kind of code generation, you do this kind > of thing all the time. SQL developers seem to avoid > CamelCase, relying on underscores instead. CONSTANT_NAMING > seems to be endemic in SQL, in particular. It's at least as > useful as Character.isJavaIdentifierStart() and > Character.isJavaIdentifierPart(). > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]