2023-08-29 21:38:23 +08:00
|
|
|
ASCII only
|
|
|
|
$ ./stringCodepointSplitterTest.exe abc
|
|
|
|
a
|
|
|
|
b
|
|
|
|
c
|
|
|
|
|
|
|
|
Still simple but not just ASCII
|
|
|
|
$ ./stringCodepointSplitterTest.exe «—»
|
|
|
|
«
|
|
|
|
—
|
|
|
|
»
|
2023-08-29 21:45:33 +08:00
|
|
|
|
|
|
|
Example from the docstring of the lib
|
|
|
|
$ ./stringCodepointSplitterTest.exe "m̄知 who you're."
|
|
|
|
m
|
|
|
|
̄
|
|
|
|
知
|
|
|
|
|
|
|
|
w
|
|
|
|
h
|
|
|
|
o
|
|
|
|
|
|
|
|
y
|
|
|
|
o
|
|
|
|
u
|
|
|
|
'
|
|
|
|
r
|
|
|
|
e
|
|
|
|
.
|