LIST: Fix case numbering.
[pspp] / src / libpspp / i18n.c
index 380a96ae881a7c80b1ce5449a04ba9ea33133402..d3fca6a168825085d459aea9fcccca4a596945cb 100644 (file)
@@ -667,7 +667,7 @@ set_default_encoding (const char *enc)
 
 
 /* Attempts to set the encoding from a locale name
-   returns true if successfull.
+   returns true if successful.
    This function does not (should not!) alter the current locale.
 */
 bool
@@ -747,7 +747,7 @@ valid_encoding (const char *enc)
 
 
 /* Return the system local's idea of the
-   decimal seperator character */
+   decimal separator character */
 char
 get_system_decimal (void)
 {
@@ -952,6 +952,12 @@ utf8_to_lower (const char *s)
 {
   return utf8_casemap (s, u8_tolower);
 }
+
+char *
+utf8_to_title (const char *s)
+{
+  return utf8_casemap (s, u8_totitle);
+}
 \f
 bool
 get_encoding_info (struct encoding_info *e, const char *name)