Substring/Top and tail: Difference between revisions

clarified code point vs code unit
(Add Seed7 example)
(clarified code point vs code unit)
Line 5:
* String with last character removed
* String with both the first and last characters removed
 
Answers should deal with logical characters (code points) only, not with 8-bit code units in UTF-8 or 16-bit code units in UTF-16. The same code should work for code points in the 0–0xFFFF range as in the 0x1000–0x1FFFFF range.
 
=={{header|Ada}}==
Anonymous user