Jump to content

String length: Difference between revisions

Add Plain English
(→‎Lua: add unicode method)
(Add Plain English)
Line 2,593:
ucs4length := LENGTH4(string);
END;</syntaxhighlight>
 
=={{header|Plain English}}==
===Byte Length===
{{libheader|Plain English-output}}
Plain English does not handle Unicode, so strings return their length in bytes.
<syntaxhighlight lang="text">
To run:
Start up.
Put "møøse" into a string.
Write the string's length to the output.
Wait for the escape key.
Shut down.
</syntaxhighlight>
 
=={{header|Pop11}}==
175

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.