mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-21 21:35:28 +02:00
tpl/strings: strings.RuneCount
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
c3115292a7
commit
019bd5576b
@@ -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.",
|
||||
|
Reference in New Issue
Block a user