Rebol Programming/detab

From Wikibooks, open books for an open world
< Rebol Programming
Jump to navigation Jump to search

USAGE:[edit | edit source]

DETAB string /size number 

DESCRIPTION:[edit | edit source]

Converts tabs in a string to spaces. (tab size 4)

DETAB is a native value.

ARGUMENTS[edit | edit source]

  • string -- (Type: any-string)

REFINEMENTS[edit | edit source]

  • /size -- Specifies the number of spaces per tab.
    • number -- (Type: integer)

SOURCE CODE[edit | edit source]

detab: native[
    "Converts tabs in a string to spaces. (tab size 4)" 
    string [any-string!] 
    /size "Specifies the number of spaces per tab." 
    number [integer!]
]