1 | static S quoteIfNotIdentifierOrInteger(S s) { |
2 | if (s == null) return null; |
3 | return isJavaIdentifier(s) || isInteger(s) ? s : quote(s); |
4 | } |
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: | 527 / 778 |
Referenced in: | [show references] |