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

5
LINES

< > BotCompany Repo | #1013446 - deRoundBracket - non-token version. see tok_deRoundBracket for token-aware version

JavaX fragment (include)

static S deRoundBracket(S s) {
  if (startsWith(s, "(") && endsWith(s, ")"))
    ret substring(s, 1, l(s)-1);
  ret s;
}

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: #1013446
Snippet name: deRoundBracket - non-token version. see tok_deRoundBracket for token-aware version
Eternal ID of this version: #1013446/2
Text MD5: 81d6513fb08e5f6e6d9eba2d7877ab1c
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:45:53
Source code size: 124 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 209 / 218
Version history: 1 change(s)
Referenced in: [show references]