Action:
|
Determines if a Scheme object is a text entity.
|
|
Filename:
|
kern/kern_scm/text_scm.cxx
|
|
Syntax:
|
(text? object)
|
|
Arg Types:
|
object
|
scheme-object
|
|
Returns:
|
boolean
|
|
Description:
|
This extension returns
#t if the object is a text entity; otherwise, it returns
#f.
|
|
|
object specifies a
scheme-object that has to be queried for a text entity.
|
|
Example:
|
; text?
|
|
; Create a text string.
|
|
(define words (text (position 0 0 0) "Hello World."
|
|
|
"times-medium-r-normal" 30))
|
|
;; words
|
|
; Determine if the string is a text string.
|
|
(text? words)
|
|
;; #t
|