Usage
Show string length:
len hello, world
Output:
hello, world
12
Show number of characters (runes):
# ASCII characters
count hello, wolrd
Output:
hello, world
12
# UTF-8 characters
count 你好, 世界
Output:
你好, 世界
14
Credit
License
MIT
Yosemite (10.10) |
Mavericks (10.9) |
Mountain Lion (10.8) |
Lion (10.7) |
Snow Leopard (10.6) |
Show string length:
len hello, world
Output:
hello, world
12
Show number of characters (runes):
# ASCII characters
count hello, wolrd
Output:
hello, world
12
# UTF-8 characters
count 你好, 世界
Output:
你好, 世界
14
MIT