Next: srfi strings spec append, Previous: srfi strings spec search, Up: srfi strings spec [Index]
For every character ch
in the selected range of str, if
ch
is preceded by a cased character, it is downcased; otherwise
it is titlecased. Return the result string and does not alter
the str argument.
Examples:
(string-titlecase "--capitalize tHIS sentence.") ⇒ "--Capitalize This Sentence." (string-titlecase "see Spot run. see Nix run.") ⇒ "See Spot Run. See Nix Run." (string-titlecase "3com makes routers.") ⇒ "3Com Makes Routers."
Note that if a start index is specified, then the character
preceding str[start]
has no effect on the titlecase
decision for character str[start]
:
(string-titlecase "greasy fried chicken" 2) ⇒ "Easy Fried Chicken"
Titlecase and cased information must be compatible with the Unicode specification.
In–place side–effecting variant.
Raise the case of the selected alphabetic characters in the string. Return the result string and does not alter the str argument.
In–place side–effecting variant.
Lower the case of the selected alphabetic characters in the string. Return the result string and does not alter the str argument.
In–place side–effecting variant.
Next: srfi strings spec append, Previous: srfi strings spec search, Up: srfi strings spec [Index]