Re: Capitalizing names OT
David Short wrote: Does anyone know if there is an equivalent to the Oracle Initcap() function? I am trying to write a database independent name capitalization routine. In what language? Java? public static String initCap(String s) { return (s == null || s.length() == 0) ? s : s.substring(0,1).toUpperCase() + s.substring(1); } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Capitalizing names OT
http://jakarta.apache.org/commons/lang/apidocs/org/apache/commons/lang/StringUtils.html#capitalize(java.lang.String) -Tim Shankar Unni wrote: David Short wrote: Does anyone know if there is an equivalent to the Oracle Initcap() function? I am trying to write a database independent name capitalization routine. In what language? Java? public static String initCap(String s) { return (s == null || s.length() == 0) ? s : s.substring(0,1).toUpperCase() + s.substring(1); } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Capitalizing names OT
Thanks! -Original Message- From: news [mailto:[EMAIL PROTECTED] Behalf Of Shankar Unni Sent: Friday, February 18, 2005 4:18 PM To: tomcat-user@jakarta.apache.org Subject: Re: Capitalizing names OT David Short wrote: Does anyone know if there is an equivalent to the Oracle Initcap() function? I am trying to write a database independent name capitalization routine. In what language? Java? public static String initCap(String s) { return (s == null || s.length() == 0) ? s : s.substring(0,1).toUpperCase() + s.substring(1); } - 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]
RE: Capitalizing names OT
Thanks! -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Friday, February 18, 2005 4:23 PM To: Tomcat Users List Subject: Re: Capitalizing names OT http://jakarta.apache.org/commons/lang/apidocs/org/apache/commons/lang/Strin gUtils.html#capitalize(java.lang.String) -Tim Shankar Unni wrote: David Short wrote: Does anyone know if there is an equivalent to the Oracle Initcap() function? I am trying to write a database independent name capitalization routine. In what language? Java? public static String initCap(String s) { return (s == null || s.length() == 0) ? s : s.substring(0,1).toUpperCase() + s.substring(1); } - 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]
RE: Capitalizing names OT
If you are doing proper names, it's a lot harder than that. Some issues with names are: The Mac names McNeil, McKendry, and the other variants that are Mac. Names that contain an apostrophe O'Hara, O'Neil Then you have Generational qualifiers, III, IV, V George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: David Short [mailto:[EMAIL PROTECTED] Sent: Friday, February 18, 2005 3:29 PM To: Tomcat Users Group (E-mail) Subject: Capitalizing names OT Does anyone know if there is an equivalent to the Oracle Initcap() function? I am trying to write a database independent name capitalization routine. - 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]
RE: Capitalizing names OT
Yep, I agree. Thanks for the feedback. -Original Message- From: George Sexton [mailto:[EMAIL PROTECTED] Sent: Friday, February 18, 2005 4:41 PM To: 'Tomcat Users List'; [EMAIL PROTECTED] Subject: RE: Capitalizing names OT If you are doing proper names, it's a lot harder than that. Some issues with names are: The Mac names McNeil, McKendry, and the other variants that are Mac. Names that contain an apostrophe O'Hara, O'Neil Then you have Generational qualifiers, III, IV, V George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: David Short [mailto:[EMAIL PROTECTED] Sent: Friday, February 18, 2005 3:29 PM To: Tomcat Users Group (E-mail) Subject: Capitalizing names OT Does anyone know if there is an equivalent to the Oracle Initcap() function? I am trying to write a database independent name capitalization routine. - 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]