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

6
LINES

< > BotCompany Repo | #1014676 // stringBuffer_takeFirst

JavaX fragment (include)

static S stringBuffer_takeFirst(int n, StringBuffer buf) {
  if (buf == null) ret "";
  synchronized(buf) {
    ret buf.substring(0, min(nFirstChars, l(buf)));
  }
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1014676
Snippet name: stringBuffer_takeFirst
Eternal ID of this version: #1014676/1
Text MD5: c6695c915ee0955885e738ca606ea39d
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-04-29 23:09:48
Source code size: 170 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 412 / 437
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1014679 - stringBuffer_substring