These are procedures for mapping strings to their upper- or lower-case equivalents, respectively, or for capitalizing strings.
They use the basic case mapping rules for Unicode characters. No special language or context rules are considered. The resulting strings are guaranteed to be the same length as the input strings.
i18n) module, for locale-dependent case conversions.
Upcase every character in
Destructively upcase every character in
(string-upcase! y) ⇒ "ARRDEFG" y ⇒ "ARRDEFG"
Downcase every character in str.
Destructively downcase every character in str.
y ⇒ "ARRDEFG" (string-downcase! y) ⇒ "arrdefg" y ⇒ "arrdefg"
Return a freshly allocated string with the characters in str, where the first character of every word is capitalized.
Upcase the first character of every word in str destructively and return str.
y ⇒ "hello world" (string-capitalize! y) ⇒ "Hello World" y ⇒ "Hello World"
Titlecase every first character in a word in str.
Destructively titlecase every first character in a word in str.