跳轉到內容

Rebol 程式設計/caret-to-offset

來自華夏公益教科書,開放的書籍,為開放的世界
CARET-TO-OFFSET face offset 

返回相對於字元位置的起始位置的偏移位置。

CARET-TO-OFFSET 是一個本機值。

  • face -- 包含文字的面。 (型別:物件)
  • offset -- 文字中的偏移量。 (型別:任何字串)

原始碼

[編輯 | 編輯原始碼]
caret-to-offset: native[
    {Returns the offset position relative to the face of the character position.} 
    face [object!] "The face containing the text." 
    offset [any-string!] "The offset in the text."
]

華夏公益教科書