summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorJoel Nothman <joel.nothman@gmail.com>2015-09-08 12:51:42 +1000
committerNicolas Williams <nico@cryptonector.com>2015-09-13 01:01:24 -0500
commit83e8ec587f56a88980c55204ee8433e2f50419cc (patch)
treee63dc85438defd704e2f58985fd16b734468cf86 /docs
parent63dd033da7249d0afbbd52c5a1cb547b7653409f (diff)
utf8bytelength: count UTF8 string bytelength
[Builtin name changed, and it only works on string inputs. -Nico]
Diffstat (limited to 'docs')
-rw-r--r--docs/content/3.manual/manual.yml12
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/content/3.manual/manual.yml b/docs/content/3.manual/manual.yml
index ced5f8d0..0fe4b64b 100644
--- a/docs/content/3.manual/manual.yml
+++ b/docs/content/3.manual/manual.yml
@@ -662,6 +662,18 @@ sections:
input: '[[1,2], "string", {"a":2}, null]'
output: [2, 6, 1, 0]
+
+ - title: "`utf8bytelength`"
+ body: |
+
+ The builtin function `utf8bytelength` outputs the number of
+ bytes used to encode a string in UTF-8.
+
+ examples:
+ - program: 'utf8bytelength'
+ input: '"\u03bc"'
+ output: [2]
+
- title: "`keys`, `keys_unsorted`"
body: |