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

3
LINES

< > BotCompany Repo | #1025848 // roundIfMultipleTokensUnlessCurlyBracketed

JavaX fragment (include)

sS roundIfMultipleTokensUnlessCurlyBracketed(S s) {
  ret !tok_isCurlyBracketed(s) && !tok_isRoundBracketed(s) && countTokens(s) > 1 ? roundBracket(s) : s;
}

Author comment

Began life as a copy of #1025844

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1025848
Snippet name: roundIfMultipleTokensUnlessCurlyBracketed
Eternal ID of this version: #1025848/1
Text MD5: 671c8ff1c70fd7c3b47e7e6a03c349b2
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-10-26 05:32:14
Source code size: 159 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 129 / 164
Referenced in: [show references]