Table of Contents
1. New global functions in Rebol 2.5.6.3.1 (from 2.3.0.3.1)
1.1. alter
1.2. attempt
1.3. build-attach-body
1.4. build-markup
1.5. component?
1.6. construct
1.7. context
1.8. create-link
1.9. decloak
1.10. decode-url
1.11. dispatch
1.12. dump-obj
1.13. eighth
1.14. encloak
1.15. extract
1.16. free-boot
1.17. get-env
1.18. get-modes
1.19. has
1.20. link-app?
1.21. link?
1.22. maximum-of
1.23. minimum-of
1.24. native
1.25. ninth
1.26. remove-each
1.27. run
1.28. set-browser-path
1.29. set-modes
1.30. set-user-name
1.31. seventh
1.32. sign?
1.33. sixth
1.34. stats
1.35. suffix?
1.36. tenth
1.37. to-action
1.38. to-any-block
1.39. to-any-function
1.40. to-any-string
1.41. to-any-type
1.42. to-any-word
1.43. to-context
1.44. to-datatype
1.45. to-end
1.46. to-error
1.47. to-function
1.48. to-library
1.49. to-local-file
1.50. to-native
1.51. to-number
1.52. to-object
1.53. to-op
1.54. to-port
1.55. to-rebol-file
1.56. to-routine
1.57. to-series
1.58. to-struct
1.59. to-symbol
1.60. to-unset
2. Lost global functions in Rebol 2.5.6.3.1 (from 2.3.0.3.1)
2.1. decode-cgi-query
USAGE:
DESCRIPTION:ALTER series value
ARGUMENTS:If a value is not found in a series, append it; otherwise, remove it. ALTER is a function value.
series -- (Type: series port) value -- (Type: any)
USAGE:
DESCRIPTION:ATTEMPT value
ARGUMENTS:Tries to evaluate and returns result or NONE on error. ATTEMPT is a function value.
value -- (Type: any)
USAGE:
DESCRIPTION:BUILD-ATTACH-BODY body files boundary
ARGUMENTS:Return an email body with attached files. BUILD-ATTACH-BODY is a function value.
body -- The message body (Type: string) files -- List of files to send [%file1.r [%file2.r "data"]] (Type: block) boundary -- The boundary divider (Type: string)
USAGE:
DESCRIPTION:BUILD-MARKUP content /quiet
ARGUMENTS:Return markup text replacing <%tags%> with their evaluated results. BUILD-MARKUP is a function value.
REFINEMENTS:content -- (Type: string file url)
/quiet -- Do not show errors in the output.
USAGE:
DESCRIPTION:COMPONENT? name
ARGUMENTS:Returns specific REBOL component info if enabled. COMPONENT? is a function value.
name -- (Type: word)
USAGE:
DESCRIPTION:CONSTRUCT block /with object
ARGUMENTS:Creates an object, but without evaluating its specification. CONSTRUCT is a native value.
REFINEMENTS:block -- Object specification block (Type: block)
/with -- Provide a default base object object -- (Type: object)
USAGE:
DESCRIPTION:CONTEXT blk
ARGUMENTS:Defines a unique (underived) object. CONTEXT is a function value.
blk -- Object variables and values. (Type: block)
USAGE:
DESCRIPTION:CREATE-LINK source dest /start dir /note desc /args arg-str
ARGUMENTS:Creates file links. CREATE-LINK is a native value.
REFINEMENTS:source -- File to link to (Type: string file) dest -- Name for new link (Type: string file)
/start dir -- Directory to start in (Windows) (Type: string file) /note desc -- Link description text (Windows) (Type: string) /args arg-str -- Provide command arguments (Type: string none)
USAGE:
DESCRIPTION:DECLOAK data key /with
ARGUMENTS:Descrambles the string scrambled by encloak. DECLOAK is a native value.
REFINEMENTS:data -- String to descramble (modified) (Type: any-string) key -- Key to use (Type: any-string)
/with -- Use key as-is (for speed, no hashing)
USAGE:
DESCRIPTION:DECODE-URL url
ARGUMENTS:Decode a URL into an object. DECODE-URL is a function value.
url -- (Type: any)
USAGE:
DESCRIPTION:DISPATCH port-block
ARGUMENTS:Wait for a block of ports. As events happen, dispatch port handler blocks. DISPATCH is a function value.
port-block -- Block of port handler pairs (port can be timeout too). (Type: block)
USAGE:
DESCRIPTION:DUMP-OBJ obj /match pat
ARGUMENTS:Returns a block of information about an object. DUMP-OBJ is a function value.
REFINEMENTS:obj -- (Type: object)
/match -- Include only those that match a string or datatype pat -- (Type: any)
USAGE:
DESCRIPTION:EIGHTH series
ARGUMENTS:Returns the eight value of a series. EIGHTH is an action value.
series -- (Type: series port tuple)
USAGE:
DESCRIPTION:ENCLOAK data key /with
ARGUMENTS:Scrambles a string or binary based on a key. ENCLOAK is a native value.
REFINEMENTS:data -- String to scramble (modified) (Type: any-string) key -- Key to use (Type: any-string)
/with -- Use key as-is (for speed, no hashing)
USAGE:
DESCRIPTION:EXTRACT block width /index pos
ARGUMENTS:Extracts a value from a series at regular intervals. EXTRACT is a function value.
REFINEMENTS:block -- (Type: block hash) width -- Size of each entry (the skip) (Type: integer)
/index -- Extract from an offset position pos -- The position (Type: any)
USAGE:
DESCRIPTION:FREE-BOOT
Called by any code that takes over bootstrap. FREE-BOOT is a function value.
USAGE:
DESCRIPTION:GET-ENV var
ARGUMENTS:Gets the value of an operating system environment variable. GET-ENV is a native value.
var -- Variable to lookup (Type: string)
USAGE:
DESCRIPTION:GET-MODES target modes
ARGUMENTS:Returns mode settings for a port. GET-MODES is a native value.
target -- (Type: file url block port) modes -- (Type: word block)
USAGE:
DESCRIPTION:HAS locals body
ARGUMENTS:A shortcut to define a function that has local variables but no arguments. HAS is a function value.
locals -- (Type: block) body -- (Type: block)
USAGE:
DESCRIPTION:LINK-APP?
Tell whether a script is running under a Link application context. LINK-APP? is a function value.
USAGE:
DESCRIPTION:LINK?
Returns true if REBOL/Link capability is enabled. LINK? is a function value.
USAGE:
DESCRIPTION:MAXIMUM-OF series /skip size /case
ARGUMENTS:Finds the largest value in a series MAXIMUM-OF is a native value.
REFINEMENTS:series -- Series to search (Type: series)
/skip -- Treat the series as records of fixed size size -- (Type: integer) /case -- Perform case-sensitive comparisons
USAGE:
DESCRIPTION:MINIMUM-OF series /skip size /case
ARGUMENTS:Finds the smallest value in a series MINIMUM-OF is a native value.
REFINEMENTS:series -- Series to search (Type: series)
/skip -- Treat the series as records of fixed size size -- (Type: integer) /case -- Perform case-sensitive comparisons
USAGE:
DESCRIPTION:NATIVE spec
ARGUMENTS:(undocumented)
spec -- (Type: block)
USAGE:
DESCRIPTION:NINTH series
ARGUMENTS:Returns the ninth value of a series. NINTH is an action value.
series -- (Type: series port tuple)
USAGE:
DESCRIPTION:REMOVE-EACH 'word data body
ARGUMENTS:Removes a value from a series for each block that returns TRUE. REMOVE-EACH is a native value.
word -- Word or block of words to set each time (will be local) (Type: get-word word block) data -- The series to traverse (Type: series) body -- Block to evaluate. Return TRUE to remove. (Type: block)
USAGE:
DESCRIPTION:RUN file /as suffix
ARGUMENTS:Runs the system application associated with a file. RUN is a native value.
REFINEMENTS:file -- The file to open (file, URL) or command to run (string). (Type: file url string)
/as suffix -- (Type: string file)
USAGE:
DESCRIPTION:SET-BROWSER-PATH value
ARGUMENTS:Path to default web browser. SET-BROWSER-PATH is a native value.
value -- The shell call string (Type: any-string)
USAGE:
DESCRIPTION:SET-MODES target modes
ARGUMENTS:Changes mode settings for a port. SET-MODES is a native value.
target -- (Type: file url block port) modes -- (Type: block)
USAGE:
DESCRIPTION:SET-USER-NAME str
ARGUMENTS:(undocumented)
str -- (Type: string)
USAGE:
DESCRIPTION:SEVENTH series
ARGUMENTS:Returns the seventh value of a series. SEVENTH is an action value.
series -- (Type: series port tuple event)
USAGE:
DESCRIPTION:SIGN? number
ARGUMENTS:Returns sign of number as 1, 0, or -1 (to use as multiplier). SIGN? is a function value.
number -- (Type: number money time)
USAGE:
DESCRIPTION:SIXTH series
ARGUMENTS:Returns the sixth value of a series. SIXTH is an action value.
series -- (Type: series port tuple event)
USAGE:
DESCRIPTION:STATS /pools /types /series /frames /recycle
REFINEMENTS:System statistics. Default is to return total memory used. STATS is a native value.
/pools -- Returns: width units free-units units-per-alloc segments mem-in-use /types -- Returns: Datatype count /series -- Returns: total blocks strings other avail free expansions /frames -- Returns: total used unused free values-total /recycle -- Returns: count series-total series-last frames-total frames-last ballast
USAGE:
DESCRIPTION:SUFFIX? path
ARGUMENTS:Return the suffix (ext) of a filename or url, else NONE. SUFFIX? is a function value.
path -- (Type: any-string)
USAGE:
DESCRIPTION:TENTH series
ARGUMENTS:Returns the tenth value of a series. TENTH is an action value.
series -- (Type: series port tuple)
USAGE:
DESCRIPTION:TO-ACTION value
ARGUMENTS:(undocumented)
value -- (Type: any)
USAGE:
DESCRIPTION:TO-ANY-BLOCK value
ARGUMENTS:(undocumented)
value -- (Type: any)
USAGE:
DESCRIPTION:TO-ANY-FUNCTION value
ARGUMENTS:(undocumented)
value -- (Type: any)
USAGE:
DESCRIPTION:TO-ANY-STRING value
ARGUMENTS:(undocumented)
value -- (Type: any)
USAGE:
DESCRIPTION:TO-ANY-TYPE value
ARGUMENTS:(undocumented)
value -- (Type: any)
USAGE:
DESCRIPTION:TO-ANY-WORD value
ARGUMENTS:(undocumented)
value -- (Type: any)
USAGE:
DESCRIPTION:TO-CONTEXT value
ARGUMENTS:(undocumented)
value -- (Type: any)
USAGE:
DESCRIPTION:TO-DATATYPE value
ARGUMENTS:(undocumented)
value -- (Type: any)
USAGE:
DESCRIPTION:TO-END value
ARGUMENTS:(undocumented)
value -- (Type: any)
USAGE:
DESCRIPTION:TO-ERROR value
ARGUMENTS:(undocumented)
value -- (Type: any)
USAGE:
DESCRIPTION:TO-FUNCTION value
ARGUMENTS:(undocumented)
value -- (Type: any)
USAGE:
DESCRIPTION:TO-LIBRARY value
ARGUMENTS:(undocumented)
value -- (Type: any)
USAGE:
DESCRIPTION:TO-LOCAL-FILE path
ARGUMENTS:Converts a REBOL file path to the local system file path. TO-LOCAL-FILE is a native value.
path -- (Type: file string)
USAGE:
DESCRIPTION:TO-NATIVE value
ARGUMENTS:(undocumented)
value -- (Type: any)
USAGE:
DESCRIPTION:TO-NUMBER value
ARGUMENTS:(undocumented)
value -- (Type: any)
USAGE:
DESCRIPTION:TO-OBJECT value
ARGUMENTS:(undocumented)
value -- (Type: any)
USAGE:
DESCRIPTION:TO-OP value
ARGUMENTS:(undocumented)
value -- (Type: any)
USAGE:
DESCRIPTION:TO-PORT value
ARGUMENTS:(undocumented)
value -- (Type: any)
USAGE:
DESCRIPTION:TO-REBOL-FILE path
ARGUMENTS:Converts a local system file path to a REBOL file path. TO-REBOL-FILE is a native value.
path -- (Type: file string)
USAGE:
DESCRIPTION:TO-ROUTINE value
ARGUMENTS:(undocumented)
value -- (Type: any)
USAGE:
DESCRIPTION:TO-SERIES value
ARGUMENTS:(undocumented)
value -- (Type: any)
USAGE:
DESCRIPTION:TO-STRUCT value
ARGUMENTS:(undocumented)
value -- (Type: any)
USAGE:
DESCRIPTION:TO-SYMBOL value
ARGUMENTS:(undocumented)
value -- (Type: any)
USAGE:
DESCRIPTION:TO-UNSET value
ARGUMENTS:(undocumented)
value -- (Type: any)