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

3
LINES

< > BotCompany Repo | #1025653 // tok_deRoundOrCurlyBracket

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

Libraryless. Click here for Pure Java version (2491L/15K).

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

Author comment

Began life as a copy of #1008895

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: #1025653
Snippet name: tok_deRoundOrCurlyBracket
Eternal ID of this version: #1025653/1
Text MD5: 21b14a66fe22b6d47110079068ebc5e1
Transpilation MD5: d5687206c6abb1bc8f0b7c38e5dd728b
Author: stefan
Category: javax / parsing
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-10-12 18:07:57
Source code size: 141 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 281 / 373
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1025655 - tok_deRoundOrCurlyBracket_keepFirstSpacing
#1025737 - tok_isRoundOrCurlyBracketed
#1026552 - tok_deRoundOrCurlyBracket_keepSpaces