Package jsyntaxpane.util
Class StringUtils
java.lang.Object
jsyntaxpane.util.StringUtils
Don't we all need one of those?
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
camelCaseMatch
(String word, String abbr) Perfrom a String startsWith match with support for CamelCase.
-
Constructor Details
-
StringUtils
public StringUtils()
-
-
Method Details
-
camelCaseMatch
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>
-