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

7
LINES

< > BotCompany Repo | #1030930 // countWordsWithoutAngleBracketedAndStars

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

Libraryless. Click here for Pure Java version (3054L/18K).

1  
static int countWordsWithoutAngleBracketedAndStars(S s) {
2  
  int n = 0;
3  
  for (S t : javaTokWithAllPlusAngleBracketsC(s))
4  
    if (!isAngleBracketed(t) && !eq(t, "*"))
5  
      ++n;
6  
  ret n;
7  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 5 computer(s): bhatertpkbcr, ekrmjmnbrukm, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1030930
Snippet name: countWordsWithoutAngleBracketedAndStars
Eternal ID of this version: #1030930/2
Text MD5: f2d319209aa5d152f485a26da72e66f4
Transpilation MD5: 75d9f988cc8f220a80469e030f488215
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-04-12 16:18:17
Source code size: 193 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 174 / 252
Version history: 1 change(s)
Referenced in: [show references]