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

5
LINES

< > BotCompany Repo | #1011071 // unquoteIfNotContainingOtherQuotes

JavaX fragment (include)

1  
static S unquoteIfNotContainingOtherQuotes(S s) {
2  
  if (!startsAndEndsWith(s, '"')) ret s;
3  
  if (contains(dropFirstAndLast(s), '"')) ret s;
4  
  ret unquote(s);
5  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1011071
Snippet name: unquoteIfNotContainingOtherQuotes
Eternal ID of this version: #1011071/2
Text MD5: 7f1411bc1d26462f5281f3d3f142ede2
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-10-12 01:52:12
Source code size: 163 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 541 / 541
Version history: 1 change(s)
Referenced in: [show references]