forked from rebol/rebol
-
Notifications
You must be signed in to change notification settings - Fork 2
Transcode
angerangel edited this page Mar 20, 2013
·
1 revision
TRANSCODE source /next /only /error
Translates UTF-8 binary source to values. Returns [value binary].
TRANSCODE is a native value.
- source -- Must be Unicode UTF-8 encoded (binary!)
- /next -- Translate next complete value (blocks as single value)
- /only -- Translate only a single value (blocks dissected)
- /error -- Do not cause errors - return error object as value in place
#SOURCE
transcode: make native! [ [
{Translates UTF-8 binary source to values. Returns [value binary].}
source [binary!] "Must be Unicode UTF-8 encoded"
/next {Translate next complete value (blocks as single value)}
/only "Translate only a single value (blocks dissected)"
/error {Do not cause errors - return error object as value in place}
] ]