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

4
LINES

< > BotCompany Repo | #1022598 // ai_suffixChange - deduce ReplaceSuffix operation from two strings

JavaX fragment (include)

1  
static ReplaceSuffix ai_suffixChange(S a, S b) {
2  
  int common = lCommonPrefixIC(a, b);
3  
  ret common == 0 ? null : ReplaceSuffix(dropFirst(a, common), dropFirst(b, common));
4  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1022598
Snippet name: ai_suffixChange - deduce ReplaceSuffix operation from two strings
Eternal ID of this version: #1022598/5
Text MD5: 8401995e7d5253050d31cfa97de58ef2
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-08-06 21:24:16
Source code size: 177 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 234 / 272
Version history: 4 change(s)
Referenced in: [show references]