diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2020-01-18 10:25:33 -0800 |
---|---|---|
committer | Kaz Kyheku <kaz@kylheku.com> | 2020-01-18 10:25:33 -0800 |
commit | 72eff372aefb86ca8ae5ad2e95f01d4cc9e0ec78 (patch) | |
tree | 0f94bdf96c28c0f9daafd168348230bc81e6cc56 /txr.1 | |
parent | 7a6a9a21090a36ae094b3a4746a6dd371bd653cb (diff) | |
download | txr-72eff372aefb86ca8ae5ad2e95f01d4cc9e0ec78.tar.gz txr-72eff372aefb86ca8ae5ad2e95f01d4cc9e0ec78.tar.bz2 txr-72eff372aefb86ca8ae5ad2e95f01d4cc9e0ec78.zip |
New function: coded-length.
* eval.c (eval_init): Register coded-length intrinsic.
* lib.c (coded_length): New function.
* lib.h (coded_length): Declared.
Diffstat (limited to 'txr.1')
-rw-r--r-- | txr.1 | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -22293,6 +22293,24 @@ function returns the length .meta string in characters. The argument must be a string. +.coNP Function @ coded-length +.synb +.mets (coded-length << string ) +.syne +.desc +The +.code coded-length +function returns the number of bytes required to encode +.meta string +in UTF-8. + +The argument must be a character string. + +If the string contains only characters in the ASCII range U+0001 to U+007F +range, then the value returned shall be the same as that returned by the +.code length-str +function. + .coNP Function @ search-str .synb .mets (search-str < haystack < needle >> [ start <> [ from-end ]]) |