19.  Strings  

(string char ...)

Returns a string containing the specified characters.
Examples:

(string)                         ==>  ""
(string #\a #\space #\b)         ==>  "a b"

(string? obj)

See R^4RS.

(make-string k char)

See R^4RS.

(string-length string)

See R^4RS.

(string-ref string k)

See R^4RS.

(string-set! string k char)

See R^4RS.
Returns the previous value of element k of the given string.

(substring string start end)

See R^4RS.

(string-copy string)

See R^4RS.

(string-append string ...)

See R^4RS.

(list->string chars)
(string->list string)

See R^4RS.

(string-fill! string char)

See R^4RS.
Returns string.

(substring-fill! string start end char)

Stores char in every element of string from start (inclusive) to end (exclusive). Returns string.

(string=? string1 string2)
(string<? string1 string2)
(string>? string1 string2)
(string<=? string1 string2)
(string>=? string1 string2)

See R^4RS.

(string-ci=? string1 string2)
(string-ci<? string1 string2)
(string-ci>? string1 string2)
(string-ci<=? string1 string2)
(string-ci>=? string1 string2)

See R^4RS.

(substring? string1 string2)
(substring-ci? string1 string2)

If string1 is a substring of string2, these procedures return the starting position of the first occurrence of the substring within string2. Otherwise #f is returned. substring-ci? is the case insensitive version of substring?.
Examples:

(define s "Hello world")
(substring? "foo" x)             ==>  #f
(substring? "hello" x)           ==>  #f
(substring-ci? "hello" x)        ==>  0
(substring? "!" x)               ==>  11


Markup created by unroff 1.0,    September 24, 1996,    net@informatik.uni-bremen.de