Class StringUtils

java.lang.Object
jsyntaxpane.util.StringUtils

public class StringUtils extends Object
Don't we all need one of those?
  • Constructor Details

    • StringUtils

      public StringUtils()
  • Method Details

    • camelCaseMatch

      public static boolean camelCaseMatch(String word, String abbr)
      Perfrom a String startsWith match with support for CamelCase.
      Parameters:
      word - full word
      abbr - abbriviated word
      Returns:
      true if the word startsWith abbr, or if any uppercase char in abbr matches the next uppercase char in word FIXME: not so effecient as it creates a StringBuilder, but works FIXME: add Comparator<String, String>