Libraryless. Click here for Pure Java version (2519L/16K).
static int lCommonPrefix_CharSequence(CharSequence a, CharSequence b) { int i = 0, n = min(l(a), l(b)); while (i < n && a.charAt(i) == b.charAt(i)) ++i; ret i; }
Began life as a copy of #1004030
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: | #1029206 |
| Snippet name: | lCommonPrefix_CharSequence |
| Eternal ID of this version: | #1029206/1 |
| Text MD5: | a9a62c8bbc61171ad7fe66560130ed35 |
| Transpilation MD5: | 86b5e9d7416536611128352b3997c8f5 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-07-25 12:18:34 |
| Source code size: | 178 bytes / 6 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 414 / 553 |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1029262 - lCommonPrefix_lists |