In contrast, strLib.characterLen() returns the number of characters rather than the number of bytes. See "Example" in this topic.
strLib.byteLen(source CHAR | MBCHAR | DBCHAR | UNICODE in)
returns (result INT)
myUnicode5 UNICODE(5) = "ABC";
length INT;
length = strLib.byteLen(myUnicode5); // length=6
length = strLib.characterLen(myUnicode5); // length=3
| Platform | Issue |
|---|---|
| JavaScript generation | The function sysLib.byteLen() is not supported. |