Class EscapeUtils

java.lang.Object
org.semanticweb.owlapi.util.EscapeUtils

public final class EscapeUtils extends Object
Since:
2.2.0
Author:
Matthew Horridge, The University Of Manchester, Bio-Health Informatics Group
  • Method Details

    • escapeString

      public static String escapeString(String s)
      Escapes quotes and backslashes in a string. Double quotes are replaced with a backslash followed by a double quote, and backslashes are replaced with a double backslash.
      Parameters:
      s - The string to be escaped
      Returns:
      The escaped string.
    • unescapeString

      public static String unescapeString(String s)
      Parameters:
      s - string to unescape
      Returns:
      the unescaped string