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 Culturally Sensitive String Services

IP.com Disclosure Number: IPCOM000115800D
Original Publication Date: 1995-Jun-01
Included in the Prior Art Database: 2005-Mar-30
Document File: 6 page(s) / 267K

Publishing Venue

IBM

Related People

Rose, WD: AUTHOR [+5]

Abstract

Disclosed is a set of services for handling character strings in a culturally sensitive manner. These string handling services are defined in a programming language-independent style.

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

Language-Independent Interfaces for Culturally Sensitive String Services

      Disclosed is a set of services for handling character strings
in a culturally sensitive manner.  These string handling services are
defined in a programming language-independent style.

      A set of character string handling functions is required to
manage character data within the context of the global software
marketplace.  These services have been defined as programming
language independent procedure calls with the output of these
procedures being dependent upon the localization information
available to them at runtime.

      These services are keyed off the user's local profile
information which identifies preferences for various presentation
formats of the culturally sensitive information.  The POSIX concept
of 'locale' has been adopted as the means of specifying the
installation's or user's preferences.

      This disclosure deals with the usage of a programming language
independent interface to these culturally sensitive character string
processing services.  The language independent interface
specifications allow for a wide number of programming languages to be
used in 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.

      Procedures were specified rather than functions because not all
programming languages support the use of processes which return
function results.

The main features of the procedures outlined below include:
  o  localization information used to provide culturally correct
      results
  o  the name of the particular localization information object
      desired can be provided on each invocation
  o  error handling which provides detailed information on the type
      and location of the error
  o  condition handling facility to provide programmed responses to
      errors

The following string handling procedures are disclosed:
  o  CSFMLEN: Given a multi-byte character, this function will return
      the number of bytes used to represent the character.
     The input is a multi-byte character, along with an optional
    specification of the maximum number of bytes used to express the
    multi-byte character.  If the number of bytes is not specified on
    the call, the value of MB_CUR_MAX environment variable is used.
    If the value is specified, its value must be greater than zero,
    otherwise an error is reported.  The output contains the number
    of bytes represented by the input multi-byte character, if the
    call is successful, otherwise a value of minus-1 is returned and
    an error is reported.
  o  CSFCPWS: Takes a given string of wide characters as input and
      copies it into a target wide character string.
     The input is a wide character string from which characters
   ...