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

4
LINES

< > BotCompany Repo | #1025591 - tok_isRoundBracketed

JavaX fragment (include)

sbool tok_isRoundBracketed(S s) {
  L<S> tok = tok_combineRoundBrackets_keep(javaTok(s));
  ret l(tok) == 3 && startsWithAndEndsWith(tok.get(1), "(", ")");
}

Author comment

Began life as a copy of #1008437

download  show line numbers  debug dex   

Travelled to 2 computer(s): mqqgnosmbjvj, tvejysmllsmz

No comments. add comment

Snippet ID: #1025591
Snippet name: tok_isRoundBracketed
Eternal ID of this version: #1025591/1
Text MD5: 78793084d1c70e1e574c1074813ad68f
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-10-05 22:44:52
Source code size: 160 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 2 / 9
Referenced in: [show references]