mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 03:40:34 +02:00
Support for Unicode string normalization functions
* libguile/strings.c, libguile/strings.h (normalize_str, scm_string_normalize_nfc, scm_string_normalize_nfd, scm_normalize_nfkc, scm_string_normalize_nfkd): New functions. * test-suite/tests/strings.test: Unit tests for `string-normalize-nfc', `string-normalize-nfd', `string-normalize-nfkc', and `string-normalize-nfkd'. * doc/ref/api-data.texi (String Comparison): Documentation for normalization functions.
This commit is contained in:
parent
441891f376
commit
edb7bb4766
4 changed files with 182 additions and 0 deletions
|
@ -142,6 +142,11 @@ SCM_INTERNAL char *scm_to_stringn (SCM str, size_t *lenp,
|
|||
SCM_INTERNAL scm_t_uint8 *scm_i_to_utf8_string (SCM str);
|
||||
SCM_API size_t scm_to_locale_stringbuf (SCM str, char *buf, size_t max_len);
|
||||
|
||||
SCM_API SCM scm_string_normalize_nfd (SCM str);
|
||||
SCM_API SCM scm_string_normalize_nfkd (SCM str);
|
||||
SCM_API SCM scm_string_normalize_nfc (SCM str);
|
||||
SCM_API SCM scm_string_normalize_nfkc (SCM str);
|
||||
|
||||
SCM_API SCM scm_makfromstrs (int argc, char **argv);
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue