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

7
LINES

< > BotCompany Repo | #1028612 // indexOfSpaceEtc (or tab or newline)

JavaX fragment (include)

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

Author comment

Began life as a copy of #1014797

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: #1028612
Snippet name: indexOfSpaceEtc (or tab or newline)
Eternal ID of this version: #1028612/1
Text MD5: 76325d2bf0b1a20f6847543f2409d929
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-06-28 18:32:49
Source code size: 124 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 192 / 217
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1028613 - smartIndexOfSpaceEtc (or tab or newline)