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]



Reply via email to