Node:String Predicates, Next:, Previous:String Syntax, Up:Strings



21.4.2 String Predicates

The following procedures can be used to check whether a given string fulfills some specified property.

string? obj Scheme Procedure
scm_string_p (obj) C Function
Return #t if obj is a string, else #f.

string-null? str Scheme Procedure
scm_string_null_p (str) C Function
Return #t if str's length is zero, and #f otherwise.
(string-null? "")  => #t
y                    => "foo"
(string-null? y)     => #f