跳轉至內容

Rebol 程式設計/latin1?

來自華夏公益教科書,自由的教學叢書
LATIN1? value 

如果值或字串在 Latin-1 字元範圍內(低於 256),則返回 TRUE。

LATIN1? 是一個函式值。

  • value -- (型別:字串 檔案 郵件 URL 標籤 問題 字元 整數)

原始碼

[編輯 | 編輯原始碼]
latin1?: func [
    {Returns TRUE if value or string is in Latin-1 character range (below 256).} 
    value [string! file! email! url! tag! issue! char! integer!]
][
    either integer? value [value < 256] [true]
]
華夏公益教科書