String length: Difference between revisions

no edit summary
(→‎{{header|PHP}}: add grapheme length)
No edit summary
Line 29:
Unicode_Length : constant Natural := Unicode_Str'Length;</lang>
The attribute 'Length yields the number of elements of an [[array]]. Since strings in Ada are arrays of characters, 'Length is the string length. Ada supports strings of [[Latin-1]], [[UCS-16]] and full [[Unicode]] characters. In the example above character length of all three strings is 11. The length of the objects in bits will differ.
 
=={{header|Aime}}==
===Byte Length===
<lang aime>length("Hello, World!")</lang>
 
=={{header|ALGOL 68}}==
Anonymous user