Open ch-yx opened 2 years ago
from char to code point & from code point to char
require https://github.com/gnembon/fabric-carpet/pull/1368 at least carpet 1.4.82
it provides 3 function: ord, ord_string and chr. ord_string is for string. ord is for char.
ord
ord_string
chr
and a helper function: string_iter works like built in split with only one argument, but can handle emojis
string_iter
split
😆 its requirement (https://github.com/gnembon/fabric-carpet/pull/1368) is merged in carpet 1.4.82 😆
from char to code point & from code point to char
require
https://github.com/gnembon/fabric-carpet/pull/1368at least carpet 1.4.82it provides 3 function:
ord
,ord_string
andchr
.ord_string
is for string.ord
is for char.and a helper function:
string_iter
works like built insplit
with only one argument, but can handle emojis