watch 01:25
Jurassic World: Dominion Dominates Fandom Wikis - The Loop
Do you like this video?
Play Sound
Use the codeunits keyword to count the number of codeunits making up a string.
Example
put the number of codeunits of tString
A codeunit refers to the encoded units in which codepoints are stored (e.g. 16 bit words in UTF-16 or 8-bit bytes in UTF-8)
Use the expression
the number of codeunits of tString
to find out how many codeunits make up a Unicode string.