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

3
LINES

< > BotCompany Repo | #1026552 // tok_deRoundOrCurlyBracket_keepSpaces

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

Libraryless. Click here for Pure Java version (2516L/16K).

1  
sS tok_deRoundOrCurlyBracket_keepSpaces(S s) {
2  
  ret isCurlyBraced(s) || tok_isRoundBracketed(s) ? join(dropFirstTwoAndLastTwo(javaTok(s))) : s;
3  
}

Author comment

Began life as a copy of #1025653

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1026552
Snippet name: tok_deRoundOrCurlyBracket_keepSpaces
Eternal ID of this version: #1026552/3
Text MD5: 0ea0a5902a83330420dac467e8b7adca
Transpilation MD5: cfa01edf26e8ad0d4c13056053b0990d
Author: stefan
Category: javax / parsing
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-01-12 16:27:41
Source code size: 148 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 261 / 368
Version history: 2 change(s)
Referenced in: [show references]