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

6
LINES

< > TinyBrain | #1008895 - tok_unCurlyBracket

JavaX fragment (include)

static S tok_unCurlyBracket(S s) {
  L<S> tok = javaTok(s);
  if (eqGet(tok, 1, "{") && eqGet(tok, l(tok)-2, "}"))
    ret trim(join(subList(tok, 2, l(tok)-2)));
  ret s;
}

download  show line numbers  debug dex   

Travelled to 2 computer(s): cfunsshuasjs, tvejysmllsmz

No comments. add comment

Snippet ID: #1008895
Snippet name: tok_unCurlyBracket
Eternal ID of this version: #1008895/1
Text MD5: 2977843c4030cbef748fa61b550f3b21
Author: stefan
Category: javax / parsing
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-06-15 23:48:58
Source code size: 177 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 12 / 15
Referenced in: [show]