Cheddar Documentation
Search
⌃
K
Cheddar Documentation
Search
⌃
K
Introduction
Syntax
Literals
Mathematics
Variables
Functions
Default Operators
Control Flow
Standard Library
String
Bytes
Count
Length
Match
Slice
Tail
Chars
Head
Lines
Ord
Split
Test
Chunk
Index
Lower
Reverse
Substitute
Upper
Developing
Powered By
GitBook
Length
type
returns
Getter
number
Explanation
Returns the size of the string accounting for surrogate characters.
Examples
""
.
len
==
0
"🐐"
.
len
==
1
"1\n2"
.
len
==
3
"Hello"
.
len
==
5
"1 2 3"
.
len
==
5
Previous
Count
Next
Match
Last modified
3yr ago