Next: String Modification, Previous: List/String Conversion, Up: Strings
Portions of strings can be extracted by these procedures.
string-ref delivers individual characters whereas
substring can be used to extract substrings from longer strings.
Return the number of characters in STRING
Return character K of STR using zero-origin indexing. K must be a valid index of STR.
Return a freshly allocated copy of the string str. If given, start and end delimit the portion of str which is copied.
Return a newly allocated string formed from the characters of string STR beginning with index START (inclusive) and ending with index END (exclusive). Both START and END may be a negative number n, in which case they refer to the index −n counted from the end of the string.