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

3
LINES

< > BotCompany Repo | #1025583 // tok_unCurlyBracket_keepSpaces - keeps spaces in beginning and end

JavaX fragment (include)

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

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: #1025583
Snippet name: tok_unCurlyBracket_keepSpaces - keeps spaces in beginning and end
Eternal ID of this version: #1025583/2
Text MD5: a1205395144670bb6987ee0e6284d899
Author: stefan
Category: javax / parsing
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-10-05 16:47:08
Source code size: 114 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 210 / 268
Version history: 1 change(s)
Referenced in: [show references]