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

3
LINES

< > BotCompany Repo | #1003026 - dropSuffixIgnoreCase

JavaX fragment (include)

static S dropSuffixIgnoreCase(S suffix, S s) {
  ret ewic(s, suffix) ? s.substring(0, l(s)-l(suffix)) : s;
}

Author comment

Began life as a copy of #1002048

download  show line numbers  debug dex   

Travelled to 11 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz

No comments. add comment

Snippet ID: #1003026
Snippet name: dropSuffixIgnoreCase
Eternal ID of this version: #1003026/1
Text MD5: c4c631be0e14004946aed18889c5f47c
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-04-20 20:46:04
Source code size: 110 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 365 / 316
Referenced in: [show references]

Formerly at http://tinybrain.de/1003026 & http://1003026.tinybrain.de