diff options
author | David E. Wheeler <david@justatheory.com> | 2018-06-04 13:47:03 -0400 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-06-04 20:47:03 +0300 |
commit | 019bd5576be87c9f06b6a928ede1a5e78677f7b3 (patch) | |
tree | 2eba3a897b200a127ccd5e2e952551e03a9c5c89 /docs/data | |
parent | c3115292a7f2d2623cb45054a361e997ad9330c9 (diff) |
tpl/strings: strings.RuneCount
Diffstat (limited to 'docs/data')
-rw-r--r-- | docs/data/docs.json | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/docs/data/docs.json b/docs/data/docs.json index 4eddf8eae..3020a21f2 100644 --- a/docs/data/docs.json +++ b/docs/data/docs.json @@ -3146,7 +3146,25 @@ "Aliases": [ "countrunes" ], - "Examples": [] + "Examples": [ + [ + "{{ \"Hello, 世界\" | countrunes }}", + "8" + ] + ] + }, + "RuneCount": { + "Description": "RuneCount returns the number of runes in s", + "Args": [ + "s" + ], + "Aliases": [], + "Examples": [ + [ + "{{ \"Hello, 世界\" | strings.RuneCount }}", + "9" + ] + ] }, "CountWords": { "Description": "CountWords returns the approximate word count in s.", |