RosettaCodeData/Task/Substring-Top-and-tail/00DESCRIPTION

16 lines
680 B
Text
Raw Permalink Normal View History

2016-12-05 22:15:40 +01:00
The task is to demonstrate how to remove the first and last characters from a string.
The solution should demonstrate how to obtain the following results:
2013-04-11 01:07:29 -07:00
* String with first character removed
* String with last character removed
* String with both the first and last characters removed
2016-12-05 22:15:40 +01:00
<br>
If the program uses UTF-8 or UTF-16, it must work on any valid Unicode code point, whether in the Basic Multilingual Plane or above it.
The program must reference logical characters (code points), not 8-bit code units for UTF-8 or 16-bit code units for UTF-16.
Programs for other encodings (such as 8-bit ASCII, or EUC-JP) are not required to handle all Unicode characters.
<br><br>