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: | 250 / 637 |
Version history: | 4 change(s) |
Referenced in: | [show references] |