Clipping of Fields Containing Double-Byte Character Set Characters
Original Publication Date: 1987-Apr-01
Included in the Prior Art Database: 2005-Feb-01
To implement horizontal scrolling and overlapping of emulated portions, it is necessary to clip all forms of alphanumeric fields to fit the visible portions of the partition ensuring only that whole characters are displayed. In fields containing Double-Byte Character Set (DBCS) characters the rules relating to clipping depend on whether the field is mixed or not and on whether SOSI takes position or not. The first and last bytes of the visible strip are checked and replaced where necessary, to ensure that only whole characters and, where appropriate, SOSI pairs are displayed. The Rules For Clipping DBCS Fields The following algorithm applies to DBCS fields ensuring that when clipping on a horizontal plane takes place, only whole DBCS characters are displayed. 1.