Handbook
Glossary
<CFString> ( string -- alien )
Vocabulary
core-foundation
.
strings
Inputs
string
a
string
Outputs
alien
a
CFString
Word description
Creates a Core Foundation string from a Factor string.
See also
<NSString>
,
CF>string
Definition
USING:
kernel
sequences
;
IN:
core-foundation.strings
:
<CFString>
( string -- alien )
[
f
]
dip
prepare-CFString
dup
length
kCFStringEncodingUTF8
f
CFStringCreateWithBytes
[
"CFStringCreateWithBytes failed"
throw
]
unless*
;