Language-Independent Interfaces for Culturally Sensitive Conversion Services
Original Publication Date: 1995-Jul-01
Included in the Prior Art Database: 2005-Mar-30
Rose, WD: AUTHOR [+5]
Disclosed is a programming language independent mechanism to access culturally sensitive character string conversion services.
Language-Independent Interfaces for Culturally Sensitive
a programming language independent mechanism to
access culturally sensitive character string conversion services.
A set of
conversion services for character strings is required
to manage character data within the context of the global software
market place. These services have been defined as programming
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 various presentation
formats of the culturally sensitive information. The POSIX 'locale'
concept has been adopted as the means of specifying the user's
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 to provide culturally correct results
o localization information object name can be included in the call
o error handling provides detailed information on type and
o condition handling facility to provide programmed response to
The following character string conversion procedures are
o CSFM2WS: Converts the source multibyte character string into its
wide character string representation.
The input is a multibyte character string to be converted
as well as the specified number of multibyte characters in the
string to be processed. The results of the operation will be
array of values in the same representation as the process code.
The service will convey the number of characters which were
converted, if the operation was successful, otherwise, it will
return a byte value which is the offset into the multibyte
where the error occurred.
o CSFM2WC: Converts a specified multibyte character into its
corresponding wide character representation.
The input specifies a multi byte character, and the maximum
number of bytes used to specify the wide character. If the
specification is not supplied, the default value defined in
MB_CUR_ MAX will be used. If specified, the value must be
greater than zero, otherwise, the operation will not be