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

4
LINES

< > BotCompany Repo | #1001194 // quoteIfNotIdentifier

JavaX fragment (include)

static S quoteIfNotIdentifier(S s) {
  if (s == null) return null;
  return isJavaIdentifier(s) ? s : quote(s);
}

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: #1001194
Snippet name: quoteIfNotIdentifier
Eternal ID of this version: #1001194/1
Text MD5: 8010aa16c3f1e97cbd90095d5ddec6c7
Author: stefan
Category: javacx
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-09-29 17:34:05
Source code size: 116 bytes / 4 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 835 / 1822
Referenced in: [show references]