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

8
LINES

< > BotCompany Repo | #1021920 // splitAtUnicodeSmilies

JavaX fragment (include)

static LS splitAtUnicodeSmilies(S s) {
  L<Int> l = unicodeSmileyIndices(s);
  l.add(l(s));
  new LS out;
  for i over l:
    out.add(trimSubstring(s, or(get(l, i-1), -2)+2, l.get(i)));
  ret out;
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1021920
Snippet name: splitAtUnicodeSmilies
Eternal ID of this version: #1021920/5
Text MD5: cfa15c641d94e77c179c083f6da1b635
Author: stefan
Category: javax / unicode
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-03-03 17:16:15
Source code size: 205 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 191 / 575
Version history: 4 change(s)
Referenced in: [show references]