docs: public final static int readUntil(final StringBuilder out, final String in, final int start, final char... end)
      {
          int pos = start;
          while (pos < in.length())
          {
              final char ch = in.charAt(pos);
              if (ch == '\\' && pos + 1 < in.length())
              {
                  pos = escape(out, in.charAt(pos + 1), pos);
              }
              else
              {
                  boolean endReached = false;
                  for (int n = 0; n < end.length; n++)
                  {
                      if (ch == end[n])
                      {
                          endReached = true;
                          break;
                      }
                  }
                  if (endReached)
                  {
                      break;
                  }
                  out.append(ch);
              }
              pos++;
          }
  
          return (pos == in.length()) ? -1 : pos;
      }