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