static S quoteIfNotIdentifierOrInteger(S s) { if (s == null) return null; return isJavaIdentifier(s) || isInteger(s) ? s : quote(s); }
Began life as a copy of #1001194
download show line numbers debug dex old transpilations
Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, jozkyjcghlvl, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1008181 |
Snippet name: | quoteIfNotIdentifierOrInteger |
Eternal ID of this version: | #1008181/1 |
Text MD5: | 509679b20f3fcef23b34934d4b1cd8d9 |
Author: | stefan |
Category: | javacx |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-04-29 18:11:25 |
Source code size: | 141 bytes / 4 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 528 / 778 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1010455 - quoteUnlessIdentifierOrInteger - synonym of quoteIfNotIdentifierOrInteger #1012204 - quoteUnlessWordsAndSpaces |