16. Strings

16.1 String Concepts#

16.1.1 Implications of Strings Being Arrays#

Since all strings are arrays, all rules which apply generally to arrays also apply to strings. See Section 15.1 (Array Concepts).

For example, strings can have fill pointers, and strings are also subject to the rules of element type upgrading that apply to arrays.

16.1.2 Subtypes of STRING#

All functions defined to operate on \term{strings} treat \term{base strings} uniformly with other \term{strings} with the following caveat: for any function that inserts a \term{character} into a \term{string}, the consequences are undefined if an \term{extended character} is inserted into a \term{base string}.All functions that operate on strings will operate on subtypes of string as well.

However, the consequences are undefined if a character is inserted into a string for which the element type of the string does not include that character.

Dictionary