Returns the length of a string in characters.
length_chars(x:string) -> intDescription
Section titled “Description”The length_chars function returns the character length of the x string.
Examples
Section titled “Examples”Get the character length of a string
Section titled “Get the character length of a string”For ASCII strings, the character length is the same as the number of bytes:
from {x: "hello".length_chars()}{x: 5}For Unicode, this may not be the case:
from {x: "👻".length_chars()}{x: 1}