docs: private static String processQuotesAndSlashes(String start, char find, char replace_with)
      {
          String dataPut = "";
          int inEscape = 0;
          int inQuotes = 0;
  
          char[] startChars = start.toCharArray();
          for (char startChar : startChars)
          {
              if (inEscape != 0)
              {
                  dataPut += startChar; /* Always goes verbatim */
                  inEscape = 0;
              }
              else
              {
                  if (startChar == '\\')
                  {
                      inEscape = 1; /* Do not copy \ into the data */
                  }
                  else if (startChar == '\'')
                  {
                      inQuotes = 1 - inQuotes; /* Do not copy ' into the data */
                  }
                  else
                  {
                      /* Replace , with |, unless in quotes */
                      dataPut += inQuotes != 0 ? startChar : ((startChar == find) ? replace_with : startChar);
                  }
              }
          }
          return dataPut;
      }