Class StringUtil
java.lang.Object
ca.spottedleaf.common.util.StringUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String[]LikeString.split(String), but without regex.static booleanstartsWithIgnoreCase(String string, String prefix)
-
Constructor Details
-
StringUtil
public StringUtil()
-
-
Method Details
-
split
LikeString.split(String), but without regex. This split additionally does not remove trailing empty strings. For example, splitting the value "world" on 'd' will yield "worl" and "", whereas theStringmethod will yield only "worl".- Parameters:
value- The string to split.separator- The separator.- Returns:
- The string split by the separator.
-
startsWithIgnoreCase
-