1 | static int indexOfSpaceEtc(S s) { |
2 | int n = l(s); |
3 | for i to n: |
4 | if (isSpace(s.charAt(i))) |
5 | ret i; |
6 | ret -1; |
7 | } |
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: | 193 / 219 |
Referenced in: | [show references] |