Class SqlStringUtils
java.lang.Object
org.evomaster.client.java.sql.heuristic.SqlStringUtils
Utility class for SQL strings.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanCompares two strings for equality, ignoring case considerations, and safely handles null values.static StringremoveEnclosingQuotes(String input) Removes enclosing single or double quotes from the input string.
-
Constructor Details
-
SqlStringUtils
public SqlStringUtils()
-
-
Method Details
-
removeEnclosingQuotes
Removes enclosing single or double quotes from the input string. If the input string starts and ends with either single or double quotes, it removes the first and last characters of the string.- Parameters:
input- the input string- Returns:
- the string without enclosing quotes, or the original string if no enclosing quotes are found
-
nullSafeEqualsIgnoreCase
Compares two strings for equality, ignoring case considerations, and safely handles null values.- Parameters:
a- the first string to compare, may be nullb- the second string to compare, may be null- Returns:
trueif both strings are equal ignoring case, or both are null;falseotherwise
-