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

7
LINES

< > BotCompany Repo | #1019460 // indexOfNonDigit

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

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

1  
static int indexOfNonDigit(S s) {
2  
  int n = l(s);
3  
  for i to n:
4  
    if (!isDigit(s.charAt(i)))
5  
      ret i;
6  
  ret -1;
7  
}

Author comment

Began life as a copy of #1014797

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ekrmjmnbrukm, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1019460
Snippet name: indexOfNonDigit
Eternal ID of this version: #1019460/2
Text MD5: cf4f0554c52b86cf06687998a53db2db
Transpilation MD5: 3417d6e14118d09865f76abe4618a9ac
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-08-11 09:50:40
Source code size: 125 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 365 / 516
Version history: 1 change(s)
Referenced in: [show references]