Dismiss
InnovationQ will be updated on Sunday, Oct. 22, from 10am ET - noon. You may experience brief service interruptions during that time.
Browse Prior Art Database

Language Independent Interfaces for Characters/Strings with Stateful Encoding

IP.com Disclosure Number: IPCOM000117800D
Original Publication Date: 1996-Jun-01
Included in the Prior Art Database: 2005-Mar-31
Document File: 4 page(s) / 168K

Publishing Venue

IBM

Related People

Rose, WD: AUTHOR [+5]

Abstract

Disclosed is a programming language independent mechanism for supporting coded graphic characters using stateful encoding techniques.

This text was extracted from an ASCII text file.
This is the abbreviated version, containing approximately 33% of the total text.

Language Independent Interfaces for Characters/Strings with Stateful
Encoding

      Disclosed is a programming language independent mechanism for
supporting coded graphic characters using stateful encoding
techniques.

      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
calls.

      This common 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.

      The subject 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.

      These 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.

      The language independent interface specifications allow for a
wide number of programming languages to be used on a variety of
processing platforms.

      C function prototypes were used in the specification of the
functions to accurately describe the argument list and the data types
required.

      Procedure 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
      results
  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
active
      locale is used by each service.
  o  error handling provides detailed information on type and
location
      of error
  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
its
      initial state.  The LC_CTYPE category of the locale affects the
      behavior of this function.
       The input provided points to the object that...