Next: bytevectors 8 views, Previous: bytevectors 8 intro, Up: bytevectors 8 [Index]
The following conventions hold:
-ci
are case–insensitive variants;
they interpret bytevectors as strings of characters in ASCII
encoding: when doing comparisons they use char-ci=?
and
char-ci<?
and the like.
!
are side–effecting variants.
What values these procedures return is usually not specified.
Direction | Suffix |
---|---|
left-to-right | ?none |
right-to-left | –right |
both | –both |
In the procedure specifications:
0 <= start <= past <= (bytevector-length bv)
for the corresponding argument bv. They typically restrict a procedure’s action to the indicated subvector; when start equals past the selected subvector is the empty bytevector.
=
.
=
after
having been converted to an exact integer with char->integer
.
integer->char
.
An argument followed by ...
means zero–or–more elements. So
the procedure with the signature:
sum-squares x ...
takes zero or more arguments (x, …), while the procedure with signature:
spell-check doc dict1 dict2 ...
takes two mandatory arguments (doc and dict1) and zero or more optional arguments (dict2 ...).
If a procedure is said to return “unspecified”, this means that nothing at all is known about what the procedure returns; such a procedure is not even required to be consistent from call to call; it is simply required to return a value (or values) that may be passed to a command continuation, e.g. as the value of an expression appearing as a non–terminal subform of a begin expression.
Unless explicitly stated: comparison is simply done on individual bytes
of the bytevector, case–insensitive comparison is done converting the
bytes to characters with integer->char
and then using the
functions:
char-ci=? char-ci<? char-ci>? char-ci<=? char-ci>=?
provided by the underlying implementation, or by case–folding characters with the operation:
(char-downcase (char-upcase (integer->char byte)))
where the two case–mapping operations are assumed to work for characters in the range allowed by ASCII encoding.
Next: bytevectors 8 views, Previous: bytevectors 8 intro, Up: bytevectors 8 [Index]