java.lang.Object
net.i2p.router.web.CSSHelper.StringFormatter
Enclosing class:
CSSHelper

public static class CSSHelper.StringFormatterextends Object
Capitalize first letter of each word of string
  • Constructor Details

    • StringFormatter

      public StringFormatter()
      All methods are static; the ctor exists only for javadoc.
  • Method Details

    • capitalizeWord

      public static String capitalizeWord(String str)
      Capitalizes the first letter of every whitespace-separated word.
      Parameters:
      str - the words to capitalize
      Returns:
      the string with an upper case first letter in every word