test_class.file: com.gzoltar.core/src/test/java/com/gzoltar/core/util/TestCommandLineSupport.java
test_class.identifier: TestCommandLineSupport
test_case.body: @Test
    public void testQuote5() {
      assertEquals("a\\\\b", CommandLineSupport.quote("a\\b"));
    }
test_case.class_method_signature: TestCommandLineSupport.testQuote5()
test_case.full_signature: @Test public void testQuote5()
test_case.identifier: testQuote5
test_case.invocations: assertEquals quote
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testQuote5()
focal_class.declarator: BLANK = ' '
focal_class.modifier: private static final
focal_class.original_string: private static final char BLANK = ' ';
focal_class.type: char
focal_class.var_name: BLANK
focal_class.declarator: QUOTE = '"'
focal_class.modifier: private static final
focal_class.original_string: private static final char QUOTE = '"';
focal_class.type: char
focal_class.var_name: QUOTE
focal_class.declarator: SLASH = '\\'
focal_class.modifier: private static final
focal_class.original_string: private static final char SLASH = '\\';
focal_class.type: char
focal_class.var_name: SLASH
focal_class.declarator: M_STRIPWHITESPACE = 0
focal_class.modifier: private static final
focal_class.original_string: private static final int M_STRIPWHITESPACE = 0;
focal_class.type: int
focal_class.var_name: M_STRIPWHITESPACE
focal_class.declarator: M_PARSEARGUMENT = 1
focal_class.modifier: private static final
focal_class.original_string: private static final int M_PARSEARGUMENT = 1;
focal_class.type: int
focal_class.var_name: M_PARSEARGUMENT
focal_class.declarator: M_ESCAPED = 2
focal_class.modifier: private static final
focal_class.original_string: private static final int M_ESCAPED = 2;
focal_class.type: int
focal_class.var_name: M_ESCAPED
focal_class.file: com.gzoltar.core/src/main/java/com/gzoltar/core/util/CommandLineSupport.java
focal_class.identifier: CommandLineSupport
focal_class.class_method_signature: CommandLineSupport.quote(final String arg)
focal_class.full_signature: public static String quote(final String arg)
focal_class.identifier: quote
focal_class.modifiers: public static
focal_class.parameters: (final String arg)
focal_class.return: String
focal_class.signature: String quote(final String arg)
focal_class.class_method_signature: CommandLineSupport.quote(final List<String> args)
focal_class.full_signature: public static String quote(final List<String> args)
focal_class.identifier: quote
focal_class.modifiers: public static
focal_class.parameters: (final List<String> args)
focal_class.return: String
focal_class.signature: String quote(final List<String> args)
focal_class.class_method_signature: CommandLineSupport.split(final String commandline)
focal_class.full_signature: public static List<String> split(final String commandline)
focal_class.identifier: split
focal_class.modifiers: public static
focal_class.parameters: (final String commandline)
focal_class.return: List<String>
focal_class.signature: List<String> split(final String commandline)
focal_class.class_method_signature: CommandLineSupport.addArgument(final List<String> args, final StringBuilder current)
focal_class.full_signature: private static void addArgument(final List<String> args, final StringBuilder current)
focal_class.identifier: addArgument
focal_class.modifiers: private static
focal_class.parameters: (final List<String> args, final StringBuilder current)
focal_class.return: void
focal_class.signature: void addArgument(final List<String> args, final StringBuilder current)
focal_method.body: public static String quote(final String arg) {
      final StringBuilder escaped = new StringBuilder();
      for (final char c : arg.toCharArray()) {
        if (c == QUOTE || c == SLASH) {
          escaped.append(SLASH);
        }
        escaped.append(c);
      }
      if (arg.indexOf(BLANK) != -1 || arg.indexOf(QUOTE) != -1) {
        escaped.insert(0, QUOTE).append(QUOTE);
      }
      return escaped.toString();
    }
focal_method.class_method_signature: CommandLineSupport.quote(final String arg)
focal_method.full_signature: public static String quote(final String arg)
focal_method.identifier: quote
focal_method.invocations: toCharArray append append indexOf indexOf append insert toString
focal_method.modifiers: public static
focal_method.parameters: (final String arg)
focal_method.return: String
focal_method.signature: String quote(final String arg)