summaryrefslogtreecommitdiffstats
path: root/lib.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2025-05-15 20:14:18 -0700
committerKaz Kylheku <kaz@kylheku.com>2025-05-15 20:14:18 -0700
commit02612f7d0181580f7558157283ea9a724f19fc64 (patch)
treeabad0251827760740e51c127e72d5123beaefd13 /lib.h
parentf5454af9ad307dfa2b6617cd6ecab907d309fcae (diff)
downloadtxr-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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib.h b/lib.h
index 2e416dcd..70753bb2 100644
--- a/lib.h
+++ b/lib.h
@@ -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);