Next: Appending Strings, Previous: String Searching, Up: Strings
These are procedures for mapping strings to their upper- or lower-case equivalents, respectively, or for capitalizing strings.
Return a new string made by upcasing every character in
str.
Destructively upcase every character in
str.(string-upcase! y) ⇒ "ARRDEFG" y ⇒ "ARRDEFG"
Return a new string made by downcasing every character in str.
Destructively downcase every character in str.
y ⇒ "ARRDEFG" (string-downcase! y) ⇒ "arrdefg" y ⇒ "arrdefg"
Return a new string made by capitalizing every word in
str.
Destructively capitalize every word in
str. This means the first letter of a word is upcased and the other letters downcased. Words are recognized as a sequence ofchar-alphabetic?characters. str must not be a shared substring.