Browse Prior Art Database

National Language-Enabled Command Line Parser and Validater

IP.com Disclosure Number: IPCOM000105195D
Original Publication Date: 1993-Jun-01
Included in the Prior Art Database: 2005-Mar-19
Document File: 2 page(s) / 59K

Publishing Venue

IBM

Related People

Hlava, A: AUTHOR [+2]

Abstract

A programming interface, her after called ParseNLArgv, is disclosed for the C programming language that interprets and validates the parameter information of a program's commands which a user enters in one of the program's supported national languages from the operating system's command prompt. The operating systems supported by ParseNLArgv are DOS, OS/2* and AIX/UNIX**. The significance of ParseNLArgv is to eliminate the need for a program to be concerned about the national language and validation of a command's parameter information by consolidating this intelligence inside a single C function interface which is callable by the program's command processing functions.

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

National Language-Enabled Command Line Parser and Validater

      A programming interface, her after called ParseNLArgv, is
disclosed for the C programming language that interprets and
validates the parameter information of a program's commands which a
user enters in one of the program's supported national languages from
the operating system's command prompt.  The operating systems
supported by ParseNLArgv are DOS, OS/2* and AIX/UNIX**.  The
significance of ParseNLArgv is to eliminate the need for a program to
be concerned about the national language and validation of a
command's parameter information by consolidating this intelligence
inside a single C function interface which is callable by the
program's command processing functions.

      Parameter information.  ParseNLArgv, defines a command's
parameter information to consist of command arguments, flags and flag
arguments.  Flags are identified by a flag prefix such as "-" or "/".
Flag argu ments immediately follow a flag and are separated from the
flag by a space or "=" (e.g. /flag=flagarg or -flag flagarg).  Any
parameter information other than flags and flag arguments is
interpreted to be a command argument.

      Inputs.  ParseNLArgv requires the calling function to provide
four (4) inputs: a)the argv strings containing the command line; b) a
pointer to an in-memory Name Table containing all the program's valid
command, flag and keyword names in the user's supported national
language and sorted in a predetermined order (each language's Name
Table is sorted in exactly the same o...