Transcode

angerangel edited this page Jan 7, 2013 · 1 revision
Clone this wiki locally

USAGE

   TRANSCODE source /next /only /error

DESCRIPTION

Translates UTF-8 binary source to values. Returns [value binary].

TRANSCODE is a native value.

ARGUMENTS

  • source -- Must be Unicode UTF-8 encoded (binary!)

REFINEMENTS

  • /next -- Translate next complete value (blocks as single value)
  • /only -- Translate only a single value (blocks dissected)
  • /error -- Do not throw 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 throw errors - return error object as value in place}
] ]