Browse Prior Art Database

GRAPHIC String Constants

IP.com Disclosure Number: IPCOM000047926D
Original Publication Date: 1983-Dec-01
Included in the Prior Art Database: 2005-Feb-08
Document File: 2 page(s) / 52K

Publishing Venue

IBM

Related People

Duke, MO: AUTHOR [+2]

Abstract

This article describes a convention for delimiting strings of graphic coded character pairs in a string of characters and character pairs which permits the use of all characters within both character sets in a source program. A quote character within any character set delimits the beginning and ending of the character string in that set, with the quote character doubled to include, as desired, a quote within the character string in that set. In addition, a recognition mechanism is provided for switching between two character sets without ambiguity.

This text was extracted from a PDF file.
At least one non-text object (such as an image or picture) has been suppressed.
This is the abbreviated version, containing approximately 65% of the total text.

Page 1 of 2

GRAPHIC String Constants

This article describes a convention for delimiting strings of graphic coded character pairs in a string of characters and character pairs which permits the use of all characters within both character sets in a source program. A quote character within any character set delimits the beginning and ending of the character string in that set, with the quote character doubled to include, as desired, a quote within the character string in that set. In addition, a recognition mechanism is provided for switching between two character sets without ambiguity. EXAMPLE 1: A TWO-BYTE SOURCE PROGRAM ENVIRONMENT The following presents an aesthetically pleasing graphic syntax for an environment in which source programs can be written in a two-byte source program while providing constant support for the bit, character (one-byte, EBCDIC), and graphic (two-byte) string data types. The desired syntax for the data types is:

(Image Omitted)

This example conforms to the PL/I syntax for the standard graphic representation for the single quote, B, and G graphics defined in the ANS PL/I Standard, section 2.6 Character Sets, as well as the Kanji Character Set Standard as defined by IBM. The G, in the same manner as the B, is used to distinguish the graphic constant from the character constant. The character constant is distinguished by the lack of a B or G suffix. EXAMPLE 2: THE GRAPHIC QUOTE The single quote, or graphic quote, and its significance in the solution t...