static int lastIndexOfIgnoreCase_manual(S a, S b) { int la = strL(a), lb = strL(b); if (la < lb) ret -1; int n = la-lb; loop: for (int i = n; i >= 0; i--) { for (int j = 0; j < lb; j++) { char c1 = a.charAt(i+j), c2 = b.charAt(j); if (!eqic(c1, c2)) continue loop; } ret i; } ret -1; }
Began life as a copy of #1013296
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1025933 |
Snippet name: | lastIndexOfIgnoreCase_manual |
Eternal ID of this version: | #1025933/3 |
Text MD5: | c4ae3c30ae74f48601f1240b07535672 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-10-30 16:15:43 |
Source code size: | 346 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 193 / 230 |
Version history: | 2 change(s) |
Referenced in: | [show references] |