Handbook
Glossary
prepare-CFString ( string -- byte-array )
Vocabulary
core-foundation
.
strings
Inputs
string
an
object
Outputs
byte-array
an
object
Definition
USING:
combinators.short-circuit
io.encodings.string
io.encodings.utf8
kernel
math
math.order
sequences
;
IN:
core-foundation.strings
:
prepare-CFString
( string -- byte-array )
[
dup
{
[
1114111
>
]
[
55296 57343
between?
]
}
1||
[
drop
65533
]
when
]
map!
utf8
encode
;