Anonymous user
Substring/Top and tail: Difference between revisions
Changed output. Avoided to use negatives indexes in "runeSubstr" as this may not work (bug in V1.4).
m (→{{header|Phix}}: added syntax colouring the hard way, phix/basics) |
(Changed output. Avoided to use negatives indexes in "runeSubstr" as this may not work (bug in V1.4).) |
||
Line 1,219:
let s = "Hänsel ««: 10,00€"
echo "Original: ", s
echo
echo
echo "With first and last characters removed: ", s.runeSubStr(1, s.runeLen - 2)
#
let r = s.toRunes
echo "With first and last characters removed (other way): ", r[1 .. ^2]
{{out}}
<pre>
With first and last characters removed: änsel ««: 10,00
With first and last characters removed (other way): änsel ««: 10,00</pre>
=={{header|Objeck}}==
|