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

7
LINES

< > BotCompany Repo | #1035643 // tok_isSingleIdentifier

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (9735L/54K).

sbool tok_isSingleIdentifier(S src) {
  ret tok_isSingleIdentifier(javaTok(src));
}

sbool tok_isSingleIdentifier(LS tok) {
  ret l(tok) == 3 && isIdentifier(tok.get(1));
}

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): elmgxqgtpvxh, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1035643
Snippet name: tok_isSingleIdentifier
Eternal ID of this version: #1035643/1
Text MD5: 488c1027e497255c64abb9ed47cad473
Transpilation MD5: 2d580019d357a70931f132ceae8b74a6
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-06-27 10:26:07
Source code size: 178 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 122 / 165
Referenced in: [show references]