summaryrefslogtreecommitdiff
path: root/libguile/strings.h
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2011-01-25 23:36:35 +0100
committerLudovic Courtès <ludo@gnu.org>2011-01-26 00:29:50 +0100
commit647dc1ac2370cd00ae0996ddc9c4659d96ee77a2 (patch)
tree62a5fa1e2b19bddd9f2031ac1301dc556b794701 /libguile/strings.h
parente9a35a965bb52d22a5093b168013a0a2adb24440 (diff)
downloadguile-647dc1ac2370cd00ae0996ddc9c4659d96ee77a2.tar.gz
Add `scm_{to,from}_utf32_string'.
* libguile/strings.c (scm_from_utf32_string, scm_from_utf32_stringn, scm_to_utf32_string, scm_to_utf32_stringn): New functions. * libguile/strings.h (scm_from_utf32_string, scm_from_utf32_stringn, scm_to_utf32_string, scm_to_utf32_stringn): New declarations. * doc/ref/api-data.texi (Conversion to/from C): Document `scm_{to,from}_{utf8,utf32}_stringn'.
Diffstat (limited to 'libguile/strings.h')
-rw-r--r--libguile/strings.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libguile/strings.h b/libguile/strings.h
index 168fcb7d1..b9e901b6c 100644
--- a/libguile/strings.h
+++ b/libguile/strings.h
@@ -148,6 +148,11 @@ SCM_API char *scm_to_utf8_stringn (SCM str, size_t *lenp);
SCM_API SCM scm_from_utf8_string (const char *str);
SCM_API SCM scm_from_utf8_stringn (const char *str, size_t len);
+SCM_API scm_t_wchar *scm_to_utf32_string (SCM str);
+SCM_API scm_t_wchar *scm_to_utf32_stringn (SCM str, size_t *lenp);
+SCM_API SCM scm_from_utf32_string (const scm_t_wchar *str);
+SCM_API SCM scm_from_utf32_stringn (const scm_t_wchar *str, size_t len);
+
SCM_API char *scm_to_stringn (SCM str, size_t *lenp, const char *encoding,
scm_t_string_failed_conversion_handler handler);
SCM_API size_t scm_to_locale_stringbuf (SCM str, char *buf, size_t max_len);