Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

9
LINES

< > BotCompany Repo | #1016424 // print_append (helper for print function)

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (1629L/11K).

static void print_append(Appendable buf, S s, int max) ctex {
  synchronized(buf) {
    buf.append(s);
    if (buf cast StringBuffer)
      rotateStringBuffer(buf, max);
    else if (buf cast StringBuilder)
      rotateStringBuilder(buf, max);
  }
}

Author comment

Began life as a copy of #1000658

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1016424
Snippet name: print_append (helper for print function)
Eternal ID of this version: #1016424/12
Text MD5: 0a3769aa3a5ed991a7b67970878751eb
Transpilation MD5: d04b25af74148f2837e9c224f4690f2c
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-07-30 23:39:04
Source code size: 257 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 546 / 733
Version history: 11 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1024269 - rotateStringBuilder