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

7
LINES

< > BotCompany Repo | #1014461 // indexOfFirstPunctuationChar

JavaX fragment (include)

static int indexOfFirstPunctuationChar(S s) {
  int n = l(s);
  for i to n:
    if (isPunctuationChar(s.charAt(i)))
      ret i;
  ret -1;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1014461
Snippet name: indexOfFirstPunctuationChar
Eternal ID of this version: #1014461/1
Text MD5: 9f69a75e9efa1c8134b1b380e510295e
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-04-22 01:19:29
Source code size: 146 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 346 / 389
Referenced in: [show references]