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

7
LINES

< > BotCompany Repo | #1008349 // multiLineQuote

JavaX fragment (include)

1  
static S multiLineQuote(S s) {
2  
  for (int i = 0; ; i++) {
3  
    S closer = "]" + rep('=', i) + "]";
4  
    if (!contains(s, closer))
5  
      ret "[" + rep('=', i) + "[" + s + closer;
6  
  }
7  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 17 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ekrmjmnbrukm, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, whxojlpjdney, xrpafgyirdlv

No comments. add comment

Snippet ID: #1008349
Snippet name: multiLineQuote
Eternal ID of this version: #1008349/2
Text MD5: 2c67749cb5553842f288c0de967bb37e
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-05-09 15:03:45
Source code size: 187 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 503 / 1192
Version history: 1 change(s)
Referenced in: [show references]