Libraryless. Click here for Pure Java version (41L/1K).
1 | static int charArrayIndexOf(char[] a, char [] b, int i) { |
2 | if (a == null) ret -1; |
3 | int n = a.length-b.length; |
4 | for (; i < n; i++) |
5 | if (charArrayRegionMatches(a, i, b, 0, b.length)) |
6 | ret i; |
7 | ret -1; |
8 | } |
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: | 215 / 282 |
Version history: | 1 change(s) |
Referenced in: | [show references] |