diff options
Diffstat (limited to 'doc/ref')
-rwxr-xr-x | doc/ref/api-data.texi | 13 | ||||
-rw-r--r-- | doc/ref/api-i18n.texi | 12 |
2 files changed, 25 insertions, 0 deletions
diff --git a/doc/ref/api-data.texi b/doc/ref/api-data.texi index 81f44de39..6721b12bc 100755 --- a/doc/ref/api-data.texi +++ b/doc/ref/api-data.texi @@ -1901,6 +1901,19 @@ Return the uppercase character version of @var{chr}. Return the lowercase character version of @var{chr}. @end deffn +@rnindex char-titlecase +@deffn {Scheme Procedure} char-titlecase chr +@deffnx {C Function} scm_char_titlecase (chr) +Return the titlecase character version of @var{chr} if one exists; +otherwise return the uppercase version. + +For most characters these will be the same, but the Unicode Standard +includes certain digraph compatibility characters, such as @code{U+01F3} +``dz'', for which the uppercase and titlecase characters are different +(@code{U+01F1} ``DZ'' and @code{U+01F2} ``Dz'' in this case, +respectively). +@end deffn + @node Character Sets @subsection Character Sets diff --git a/doc/ref/api-i18n.texi b/doc/ref/api-i18n.texi index ee76544eb..b82a3a276 100644 --- a/doc/ref/api-i18n.texi +++ b/doc/ref/api-i18n.texi @@ -197,6 +197,12 @@ Return the uppercase character that corresponds to @var{chr} according to either @var{locale} or the current locale. @end deffn +@deffn {Scheme Procedure} char-locale-titlecase chr [locale] +@deffnx {C Function} scm_char_locale_titlecase (chr, locale) +Return the titlecase character that corresponds to @var{chr} according +to either @var{locale} or the current locale. +@end deffn + @deffn {Scheme Procedure} string-locale-upcase str [locale] @deffnx {C Function} scm_string_locale_upcase (str, locale) Return a new string that is the uppercase version of @var{str} @@ -209,6 +215,12 @@ Return a new string that is the down-case version of @var{str} according to either @var{locale} or the current locale. @end deffn +@deffn {Scheme Procedure} string-locale-titlecase str [locale] +@deffnx {C Function} scm_string_locale_titlecase (str, locale) +Return a new string that is the titlecase version of @var{str} +according to either @var{locale} or the current locale. +@end deffn + Note that in the current implementation Guile has no notion of multibyte characters and in a multibyte locale characters may not be converted correctly. |