Strip whitespace from a string/Top and tail: Difference between revisions
Strip whitespace from a string/Top and tail (view source)
Revision as of 08:43, 23 March 2021
, 3 years agoAdded 11l
(→{{header|Java}}: Iterating by code points) |
Alextretyak (talk | contribs) (Added 11l) |
||
Line 16:
{{Template:Strings}}
<br><br>
=={{header|11l}}==
<lang 11l>V s = " \t \r \n String with spaces \t \r \n "
print(s.ltrim((‘ ’, "\t", "\r", "\n")).len)
print(s.rtrim((‘ ’, "\t", "\r", "\n")).len)
print(s.trim((‘ ’, "\t", "\r", "\n")).len)</lang>
{{out}}
<pre>
29
25
18
</pre>
=={{header|Ada}}==
|