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

10
LINES

< > BotCompany Repo | #1028446 // containsStars

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

Libraryless. Click here for Pure Java version (2751L/17K).

sbool containsStars(S s) {
  ret containsStars(javaTok_cached(s));
}

sbool containsStars(LS tok) {
  for (int i = 1; i < l(tok); i += 2)
    if (eq(tok.get(i), "*"))
      true;
  false;
}

Author comment

Began life as a copy of #1028373

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: #1028446
Snippet name: containsStars
Eternal ID of this version: #1028446/1
Text MD5: 0f21dc34766beeed87a28164f63346d4
Transpilation MD5: 4f79d273405bc4a7ec04fefe0fcd1e20
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-06-20 18:10:07
Source code size: 198 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 108 / 166
Referenced in: [show references]