The procedures below provide support for “character case mapping”, i.e., to convert characters or strings to their upper-case or lower-case equivalent. Note that SRFI-13 provides procedures that look similar (see Alphabetic Case Mapping). However, the SRFI-13 procedures are locale-independent. Therefore, they do not take into account specificities of the customs in use in a particular language or region of the world. For instance, while most languages using the Latin alphabet map lower-case letter “i” to upper-case letter “I”, Turkish maps lower-case “i” to “Latin capital letter I with dot above”. The following procedures allow programmers to provide idiomatic character mapping.
Return the lowercase character that corresponds to chr according to either locale or the current locale.
Return the uppercase character that corresponds to chr according to either locale or the current locale.
Return the titlecase character that corresponds to chr according to either locale or the current locale.
Return a new string that is the uppercase version of str according to either locale or the current locale.