Language Independent Interfaces for Characters/Strings with Stateful Encoding
Original Publication Date: 1996-Jun-01
Included in the Prior Art Database: 2005-Mar-31
Rose, WD: AUTHOR [+5]
Disclosed is a programming language independent mechanism for supporting coded graphic characters using stateful encoding techniques.
Language Independent Interfaces for Characters/Strings
a programming language independent mechanism for
supporting coded graphic characters using stateful encoding
A set of
common language independent services for handling
stateful encodings (such as EBCDIC DBCS) for characters and strings
is provided. These services are all restartable functions and will
properly handle the shift-states associated with these stateful
encodings. These services have been designed in such a way as to
make them accessible to each of the supported high-level languages
(C, Cobol, Fortran, PL/I and RPG) as language-independent procedure
set of restartable, stateful encoding function
interfaces to the user without requiring the programmer to code with
a specific culture in mind, use a particular operating system or
programming language for the product being developed.
of this publication is the adaptation of a
programming language independent interface to these character and
string stateful encoding services. These services have been defined
as programming language independent procedure calls. Each of the
callable services relies on localization information available to
them at runtime, to alter their results in accordance with the local
preferences of the caller.
services use the data in a user's local profile
information which identifies preferences for order of coded graphic
character data. The POSIX 'locale' concept has been adopted as the
means of specifying the user's preferences.
independent interface specifications allow for a
wide number of programming languages to be used on a variety of
prototypes were used in the specification of the
functions to accurately describe the argument list and the data types
calls were used rather than function calls because
not all programming languages support the use of processes which
return function results.
The main features of the procedure calls are:
o localization information is used to provide culturally correct
o localization information can be specified on the procedure call
via the name of the data structure containing the pertinent
information. If not specified in the calls, the currently
locale is used by each service.
o error handling provides detailed information on type and
o condition handling facility is provided allowing for programmed
responses to specific errors
The following services are provided:
o The CSFINIS service initializes the specified state object to
initial state. The LC_CTYPE category of the locale affects the
behavior of this function.
The input provided points to the object that...