static bool isSingleQuoteIdentifier(S s) { if (l(s) < 2 || s.charAt(0) != '\'' || !Character.isJavaIdentifierStart(s.charAt(1))) false; for (int i = 2; i < l(s); i++) if (!Character.isJavaIdentifierPart(s.charAt(i))) false; true; }
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: | #1008955 |
| Snippet name: | isSingleQuoteIdentifier |
| Eternal ID of this version: | #1008955/4 |
| Text MD5: | 2f1a246b815d02ed700115a38e1700d9 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-06-30 20:37:51 |
| Source code size: | 246 bytes / 6 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 764 / 825 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |