RosettaCodeData/Task/Substring/00DESCRIPTION

19 lines
835 B
Text
Raw Permalink Normal View History

2015-02-20 00:35:01 -05:00
{{basic data operation}}
[[Category:String manipulation]] [[Category:Simple]]
In this task display a substring:
2013-04-11 01:07:29 -07:00
* starting from <tt>n</tt> characters in and of <tt>m</tt> length;
* starting from <tt>n</tt> characters in, up to the end of the string;
* whole string minus last character;
* starting from a known character within the string and of <tt>m</tt> length;
* starting from a known substring within the string and of <tt>m</tt> length.
2016-12-05 22:15:40 +01:00
<br>
2015-02-20 00:35:01 -05:00
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.
2016-12-05 22:15:40 +01:00
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>