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

6
LINES

< > BotCompany Repo | #1029206 // lCommonPrefix_CharSequence

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

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

1  
static int lCommonPrefix_CharSequence(CharSequence a, CharSequence b) {
2  
  int i = 0, n = min(l(a), l(b));
3  
  while (i < n && a.charAt(i) == b.charAt(i))
4  
    ++i;
5  
  ret i;
6  
}

Author comment

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: 208 / 305
Referenced in: [show references]