diff options
author | Andy Wingo <wingo@pobox.com> | 2014-09-12 17:00:59 +0200 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2014-09-12 17:00:59 +0200 |
commit | c5ea75534c683638fb1f3b328efe6ba0d242e485 (patch) | |
tree | 657b4fc7a585b54c4d05c8ec703241ca94562bd9 /doc/ref/api-data.texi | |
parent | 7f5887e70b632d49b52679f383eff07d656e59a3 (diff) | |
download | guile-c5ea75534c683638fb1f3b328efe6ba0d242e485.tar.gz |
Add (ice-9 unicode) module
* libguile/unicode.c:
* libguile/unicode.h:
* test-suite/tests/unicode.test:
* module/ice-9/unicode.scm: New files.
* module/Makefile.am:
* libguile/Makefile.am:
* test-suite/Makefile.am:
* libguile/init.c: Wire new files into the build.
* doc/ref/api-data.texi: Add docs.
Diffstat (limited to 'doc/ref/api-data.texi')
-rw-r--r-- | doc/ref/api-data.texi | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/ref/api-data.texi b/doc/ref/api-data.texi index 96f9fd017..23f3bfc73 100644 --- a/doc/ref/api-data.texi +++ b/doc/ref/api-data.texi @@ -2335,6 +2335,24 @@ lowercase, and titlecase forms respectively. The type @code{scm_t_wchar} is a signed, 32-bit integer. @end deftypefn +Characters also have ``formal names'', which are defined by Unicode. +These names can be accessed in Guile from the @code{(ice-9 unicode)} +module: + +@example +(use-modules (ice-9 unicode)) +@end example + +@deffn {Scheme Procedure} char->formal-name chr +Return the formal all-upper-case Unicode name of @var{ch}, +as a string, or @code{#f} if the character has no name. +@end deffn + +@deffn {Scheme Procedure} formal-name->char name +Return the character whose formal all-upper-case Unicode name is +@var{name}, or @code{#f} if no such character is known. +@end deffn + @node Character Sets @subsection Character Sets |