1 | static boolean isExtendedIdentifier(S s) { |
2 | if (empty(s)) ret false; |
3 | for (int i = 0; i < l(s); i++) { |
4 | char c = s.charAt(i); |
5 | if (c != '\'' && !(i == 0 ? Character.isLetter(c) : Character.isLetterOrDigit(c))) |
6 | ret false; |
7 | } |
8 | ret true; |
9 | } |
Began life as a copy of #1001892
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: | #1002736 |
Snippet name: | isExtendedIdentifier - identifiers + ' |
Eternal ID of this version: | #1002736/1 |
Text MD5: | 4f4ba274d0fe1f9dc84bea9b3264a4a2 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-02-29 20:23:19 |
Source code size: | 260 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 696 / 867 |
Referenced in: | [show references] |