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

4
LINES

< > BotCompany Repo | #1011754 - isCurlyBraced - uses javaTok

JavaX fragment (include)

static bool isCurlyBraced(S s) {
  L<S> tok = tok_combineCurlyBrackets_keep(javaTok(s));
  ret l(tok) == 3 && startsWithAndEndsWith(tok.get(1), "{", "}");
}

download  show line numbers  debug dex   

Travelled to 9 computer(s): aoiabmzegqzx, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, tslmcundralx, tvejysmllsmz

No comments. add comment

Snippet ID: #1011754
Snippet name: isCurlyBraced - uses javaTok
Eternal ID of this version: #1011754/1
Text MD5: 6096d8b50463a45b401119847631cbe6
Author: stefan
Category: javax / parsing
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-11-05 01:32:39
Source code size: 159 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 247 / 266
Referenced in: [show references]