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

7
LINES

< > BotCompany Repo | #1027336 // starPatternHasPunctuation

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

Transpiled version (2347L) is out of date.

sbool starPatternHasPunctuation(S s) {
  for (S t : javaTokC_cached(s))
    if (l(t) == 1 && !startsWithLetterOrDigit(t)
      && !eqOneOf(t, "*", "<", ">", "(", ")", "{", "}"))
      true;
  false;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1027336
Snippet name: starPatternHasPunctuation
Eternal ID of this version: #1027336/2
Text MD5: 219c2623843dfcffa8be61c8d6cb5447
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-03-09 19:54:26
Source code size: 206 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 96 / 146
Version history: 1 change(s)
Referenced in: [show references]