The language-defined package Strings. For each function that returns a String, the lower bound of the returned value is 1. When a shorter string is copied to a longer string, padding is inserted, and when a longer string is copied to a shorter one, padding is stripped. The Move procedure in Strings. Fixed, which takes a String as an out parameter, allows the programmer to control these effects.
Similar control is provided by the string transformation procedures.
The library package Strings. The Move procedure copies characters from Source to Target. If Source has the same length as Target, then the effect is to assign Source to Target. Right, then Source is copied into the last Source'Length characters of Target. In this case, if the difference in length between Target and Source is odd, then the extra Pad character is on the right.