Package jsyntaxpane.util
Class StringUtils
- java.lang.Object
-
- jsyntaxpane.util.StringUtils
-
public class StringUtils extends java.lang.Object
Don't we all need one of those?
-
-
Constructor Summary
Constructors Constructor Description StringUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
camelCaseMatch(java.lang.String word, java.lang.String abbr)
Perfrom a String startsWith match with support for CamelCase.
-
-
-
Method Detail
-
camelCaseMatch
public static boolean camelCaseMatch(java.lang.String word, java.lang.String abbr)
Perfrom a String startsWith match with support for CamelCase.- Parameters:
word
- full wordabbr
- 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>
-
-