- ⌂ Text
- Directives
#BYTES_LENGTH
Return the number of bytes used by a string, which may contain multi-byte UTF8 characters that use more than one byte. This operates on a string as a byte stream, not a character stream.
Prototype
#BYTES_LENGTH($string)
Parameters
- string - The input string.
Return
Returns the number of bytes used by string.
Example
#/ Chars: 18, Bytes: 18
#LOCAL($Text, "This is some text.")
Chars: #STRLEN($Text)
Bytes: #BYTES_LENGTH($Text)
#/ Chars: 11, Bytes: 21
#ASSIGN($Text, "Мощный курс")
Chars: #STRLEN($Text)
Bytes: #BYTES_LENGTH($Text)