跳轉到內容

Rebol 程式設計/entab

來自華夏公益教科書,開放的書籍,開放的世界

使用說明

[編輯 | 編輯原始碼]
ENTAB string /size number 

將字串中的空格轉換為製表符。(製表符大小為 4)

ENTAB 是一個本機值。

  • 字串 --(型別:any-string)
  • /size -- 指定每個製表符的空格數。
    • 數字 --(型別:整數)

原始碼

[編輯 | 編輯原始碼]
entab: native[
    "Converts spaces in a string to tabs. (tab size 4)" 
    string [any-string!] 
    /size "Specifies the number of spaces per tab." 
    number [integer!]
]
華夏公益教科書