Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

9
LINES

< > BotCompany Repo | #1002736 // isExtendedIdentifier - identifiers + '

JavaX fragment (include)

static boolean isExtendedIdentifier(S s) {
  if (empty(s)) ret false;
  for (int i = 0; i < l(s); i++) {
    char c = s.charAt(i);
    if (c != '\'' && !(i == 0 ? Character.isLetter(c) : Character.isLetterOrDigit(c)))
      ret false;
  }
  ret true;
}

Author comment

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: 622 / 790
Referenced in: [show references]