SRS top-level constant
Start Reversed String.
Representation: CSI s \x5B
Parameter default value: s = 0
SRS is used to establish in the data component the beginning and the end of a string of characters as well as the direction of the string. This direction is opposite to that currently established. The indicated string follows the preceding text. The established character progression is not affected.
The beginning of a reversed string is indicated by SRS with a parameter value of 1. A reversed string may contain one or more nested strings. These nested strings may be reversed strings the beginnings of which are indicated by SRS with a parameter value of 1, or directed strings the beginnings of which are indicated by START DIRECTED STRING (SDS) with a parameter value not equal to 0. Every beginning of such a string invokes the next deeper level of nesting.
The Standard does not define the location of the active data position within any such nested string.
The end of a reversed string is indicated by SRS with a parameter value of 0. Every end of such a string re-establishes the next higher level of nesting (the one in effect prior to the string just ended). The direction is re-established to that in effect prior to the string just ended. The active data position is moved to the character position following the characters of the string just ended.
The parameter values are:
- 0 - end of a reversed string; re-establish the previous direction
- 1 - beginning of a reversed string; reverse the direction.
NOTE 1
The effect of receiving a CVT, HT, SCP, SPD or VT control function within an SRS string is not defined by Standard.
NOTE 2
The control functions for area definition (DAQ, EPA, ESA, SPA, SSA) should not be used within an SRS string.
Implementation
const String SRS = '[';