Class SyntaxUtils

java.lang.Object
org.praxislive.ide.properties.SyntaxUtils

public class SyntaxUtils extends Object
Utility methods for quoting values in Pcl script.
  • Method Details

    • escape

      public static String escape(String input)
      Escape the provided text into a single token. Will attempt to escape without surrounding quotes if possible. The returned text will include the surrounding quotes if necessary.
      Parameters:
      input - value
      Returns:
      safe token text for input
    • escapeQuoted

      public static String escapeQuoted(String input)
      Escape the provided text into a single token. This method always surrounds the value in quotes, which are included in the returned text.
      Parameters:
      input - value
      Returns:
      safe quoted token text for input
    • escapeBraced

      @Deprecated public static String escapeBraced(String input)
      Deprecated.