Class SqlStringUtils

java.lang.Object
org.evomaster.client.java.sql.heuristic.SqlStringUtils

public class SqlStringUtils extends Object
Utility class for SQL strings.
  • Constructor Details

    • SqlStringUtils

      public SqlStringUtils()
  • Method Details

    • removeEnclosingQuotes

      public static String removeEnclosingQuotes(String input)
      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

      public static boolean nullSafeEqualsIgnoreCase(String a, String b)
      Compares two strings for equality, ignoring case considerations, and safely handles null values.
      Parameters:
      a - the first string to compare, may be null
      b - the second string to compare, may be null
      Returns:
      true if both strings are equal ignoring case, or both are null; false otherwise