Package org.praxislive.ide.properties
Class SyntaxUtils
java.lang.Object
org.praxislive.ide.properties.SyntaxUtils
Utility methods for quoting values in Pcl script.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringEscape the provided text into a single token.static StringescapeBraced(String input) Deprecated.static StringescapeQuoted(String input) Escape the provided text into a single token.
-
Method Details
-
escape
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
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.
-