diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2025-05-15 20:14:18 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2025-05-15 20:14:18 -0700 |
commit | 02612f7d0181580f7558157283ea9a724f19fc64 (patch) | |
tree | abad0251827760740e51c127e72d5123beaefd13 /lib.h | |
parent | f5454af9ad307dfa2b6617cd6ecab907d309fcae (diff) | |
download | txr-02612f7d0181580f7558157283ea9a724f19fc64.tar.gz txr-02612f7d0181580f7558157283ea9a724f19fc64.tar.bz2 txr-02612f7d0181580f7558157283ea9a724f19fc64.zip |
New string compression/decompression functions.
* buf.c (str_compress, str_decompress): New functions.
(buf_init): str-compress, str-decompress intrinsics
registered.
* lib.[ch] (string_utf8_from_buf): New function.
* tests/012/buf.tl: New tests.
* txr.1: Documented.
Diffstat (limited to 'lib.h')
-rw-r--r-- | lib.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1087,6 +1087,7 @@ val bitset(val n); val string_own(wchar_t *str); val string(const wchar_t *str); val string_utf8(const char *str); +val string_utf8_from_buf(const char *str, size_t len); val string_8bit(const unsigned char *str); val string_8bit_size(const unsigned char *str, size_t sz); val mkstring(val len, val ch); |