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).

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

Author comment

Began life as a copy of #1025653

download  show line numbers  debug dex   

Travelled to 3 computer(s): mqqgnosmbjvj, tvejysmllsmz, 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: 6 / 17
Version history: 2 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1026552 & http://1026552.tinybrain.de