SplitScript reference / String / byteLength
String.byteLength
Method
String.byteLength() -> u32
Returns a string's UTF-8 byte length.
The result counts UTF-8 bytes in the current string representation.
Effects: pure
Runtime behavior: available everywhere; synchronous
Examples
Measure UTF-8 text
let byteLength = "Bonus_01".byteLength()