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

8
LINES

< > BotCompany Repo | #1029175 // charArrayIndexOf

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

Libraryless. Click here for Pure Java version (41L/1K).

static int charArrayIndexOf(char[] a, char [] b, int i) {
  if (a == null) ret -1;
  int n = a.length-b.length;
  for (; i < n; i++)
    if (charArrayRegionMatches(a, i, b, 0, b.length))
      ret i;
  ret -1;
}

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: #1029175
Snippet name: charArrayIndexOf
Eternal ID of this version: #1029175/2
Text MD5: 4faf222a83f0bb634727877dad0c7e0f
Transpilation MD5: 771a78992d4f6abc7db86e818d9fa737
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:51:30
Source code size: 218 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 214 / 280
Version history: 1 change(s)
Referenced in: [show references]