1 | static LS splitAtUnicodeSmilies(S s) {
|
2 | L<Int> l = unicodeSmileyIndices(s); |
3 | l.add(l(s)); |
4 | new LS out; |
5 | for i over l: |
6 | out.add(trimSubstring(s, or(get(l, i-1), -2)+2, l.get(i))); |
7 | ret out; |
8 | } |
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: | 451 / 846 |
| Version history: | 4 change(s) |
| Referenced in: | [show references] |