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

7
LINES

< > BotCompany Repo | #1029176 // charArrayIndicesOf

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

Libraryless. Click here for Pure Java version (2611L/16K).

static IntBuffer charArrayIndicesOf(char[] a, char [] b) {
  int i = -1;
  new IntBuffer out;
  while ((i = charArrayIndexOf(a, b, i+1)) >= 0)
    out.add(i);
  ret out;
}

Author comment

Began life as a copy of #1029175

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: #1029176
Snippet name: charArrayIndicesOf
Eternal ID of this version: #1029176/3
Text MD5: 25d1be0de2f090978987ca2779b4adb0
Transpilation MD5: 1c8fc46581f5257910974a8cfb84a3f1
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-23 23:55:40
Source code size: 177 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 186 / 264
Version history: 2 change(s)
Referenced in: [show references]