Next: , Previous: , Up: bytevectors 8   [Index]


27.2.8 Case mapping

Function: %bytevector-s8-titlecase*! bv start past
Function: %bytevector-u8-titlecase*! bv start past
Macro: bytevector-s8-titlecase* B
Macro: bytevector-u8-titlecase* B
Macro: bytevector-s8-titlecase*! B
Macro: bytevector-u8-titlecase*! B

For every byte b, interpreted in ASCII encoding, in the selected range of B: if b is preceded by a byte representing a cased character in ASCII encoding, b is downcased; otherwise it is titlecased.

bytevector-u8-titlecase* returns the result string and does not alter its argument. bytevector-u8-titlecase! is the in–place side–effecting variant.

Note that the byte preceding bv[start] has no effect on the titlecase decision for byte bv[start].

Macro: bytevector-s8-upcase* B
Macro: bytevector-u8-upcase* B
Macro: bytevector-s8-upcase*! B
Macro: bytevector-u8-upcase*! B
Macro: bytevector-s8-downcase* B
Macro: bytevector-u8-downcase* B
Macro: bytevector-s8-downcase*! B
Macro: bytevector-u8-downcase*! B

Interpret the bytes in the selected subvector in ASCII encoding: raise or lower the case of the alphabetic characters. There are no low level functions for these macros because they are just wrappers for %bytevector-u8-map and %bytevector-u8-map!.

bytevector-u8-upcase and bytevector-u8-downcase return the result string and do not alter their argument. bytevector-u8-upcase! and bytevector-u8-downcase! are the in–place side–effecting variants.