1 | static bool isSingleQuoteIdentifier(S s) { |
2 | if (l(s) < 2 || s.charAt(0) != '\'' || !Character.isJavaIdentifierStart(s.charAt(1))) false; |
3 | for (int i = 2; i < l(s); i++) |
4 | if (!Character.isJavaIdentifierPart(s.charAt(i))) false; |
5 | true; |
6 | } |
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: | 513 / 580 |
Version history: | 3 change(s) |
Referenced in: | [show references] |