- java.lang.Object
-
- org.jfree.chart.util.StringUtils
-
public class StringUtils extends Object
String utilities.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanendsWithIgnoreCase(String base, String end)Helper functions to query a strings end portion.static StringgetLineSeparator()Queries the system properties for the line separator.static booleanstartsWithIgnoreCase(String base, String start)Helper functions to query a strings start portion.
-
-
-
Method Detail
-
startsWithIgnoreCase
public static boolean startsWithIgnoreCase(String base, String start)
Helper functions to query a strings start portion. The comparison is case insensitive.- Parameters:
base- the base string.start- the starting text.- Returns:
- true, if the string starts with the given starting text.
-
endsWithIgnoreCase
public static boolean endsWithIgnoreCase(String base, String end)
Helper functions to query a strings end portion. The comparison is case insensitive.- Parameters:
base- the base string.end- the ending text.- Returns:
- true, if the string ends with the given ending text.
-
getLineSeparator
public static String getLineSeparator()
Queries the system properties for the line separator. If access to the System properties is forbidden, the UNIX default is returned.- Returns:
- the line separator.
-
-