docs: public void emit2Quoted(int width, Pointer _str, final int len) {
          byte[] bstr = _str.buffer;
          int str = _str.start;
  
          int do_indent = 0;
          int mark = str;
          int start = str;
          int end = str;
  
          write(DOUBLE_QUOTE, 1);
          while( mark < str + len ) {
              if(do_indent > 0 ) {
                  if(do_indent == 2) {
                      write(BACKSLASH, 1);
                  }
                  emitIndent();
                  do_indent = 0;
              }
              switch(bstr[mark]) {
              /* Escape sequences allowed within double quotes. */
              case '"':  write( SLASH_QUOTE, 2 ); break;
              case '\\': write( SLASH_SLASH, 2 ); break;
              case '\0': write( SLASH_ZERO,  2 ); break;
              case 0x07: write( SLASH_A,  2 ); break;
              case '\b': write( SLASH_B,  2 ); break;
              case '\f': write( SLASH_F,  2 ); break;
              case '\r': write( SLASH_R,  2 ); break;
              case '\t': write( SLASH_T,  2 ); break;
              case 0x0B: write( SLASH_V,  2 ); break;
              case 0x1B: write( SLASH_E,  2 ); break;
  
              case '\n':
                  end = mark + 1;
                  write( SLASH_N, 2 );
                  do_indent = 2;
                  start = mark + 1;
                  if( start < str + len && ( bstr[start] == ' ' || bstr[start] == '\n' ) ) {
                      do_indent = 0;
                  }
                  break;
  
              case ' ':
                  if( width > 0 && bstr[start] != ' ' && mark - end > width ) {
                      do_indent = 1;
                      end = mark + 1;
                  } else {
                      write(SPACE, 1 );
                  }
                  break;
  
              default:
                  escape(_str.withStart(mark), 1 );
                  break;
              }
              mark++;
          }
          write(DOUBLE_QUOTE, 1 );
      }