docs: public static String stripCommentFromLine(String ddlLine) {
          boolean inQuote = false;
          char quoteChar = ' '; // will be written before use
          boolean lastCharWasDash = false;
          int length = ddlLine.length();
  
          for (int i = 0; i < length; i++) {
              char c = ddlLine.charAt(i);
              if (inQuote) {
                  if (quoteChar == c) {
                      inQuote = false;
                  }
              }
              else {
                  if (c == '-') {
                      if (lastCharWasDash) {
                          return ddlLine.substring(0, i - 1);
                      }
                      else {
                          lastCharWasDash = true;
                      }
                  }
                  else {
                      lastCharWasDash = false;
                      if (c == '\"' || c == '\'') {
                          inQuote = true;
                          quoteChar = c;
                      }
                  }
              }
          }
  
          return ddlLine;
      }