Created
February 14, 2025 04:03
-
-
Save veires/638a868c933692d17c39c1e3df9af0bb to your computer and use it in GitHub Desktop.
insert string into an unicode using variation selector
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| encode,decode=lambda u,s:u+''.join(map(lambda c:(lambda x:((0<=x<16)and(chr(0xFE00+x)))or((16<=x<256)and(chr(0xE0100+x-16)))or(None))(c)or'',map(ord,s))),lambda s:''.join(map(lambda c:(lambda x:(x<=0xFE0F)and(x-0xFE00)or(x>=0xE0100)and(x<=0xE01EF)and(x-0xE0100+16)or(None))(c)and(chr((lambda x:(x<=0xFE0F)and(x-0xFE00)or(x>=0xE0100)and(x<=0xE01EF)and(x-0xE0100+16)or(None))(c)))or'',map(ord,s))); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment