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

Method for Converting Page Selection Data to Integer Values

IP.com Disclosure Number: IPCOM000105973D
Original Publication Date: 1993-Sep-01
Included in the Prior Art Database: 2005-Mar-20
Document File: 6 page(s) / 144K

Publishing Venue

IBM

Related People

Geldner Jr, JG: AUTHOR

Abstract

Disclosed is a method for converting outbound facsimile page selectio criteria from character string representation to integer representation. This method utilizes a range indicator to indicate the current state of the conversion process. This indicator also provides an efficient means of syntax checking of the source character string.

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

Method for Converting Page Selection Data to Integer Values

      Disclosed is a method for converting outbound facsimile page
selectio criteria from character string representation to integer
representation.  This method utilizes a range indicator to indicate
the current state of the conversion process.  This indicator also
provides an efficient means of syntax checking of the source
character string.

      High volume facsimile based businesses have recently benefited
from the availability of facsimile servers.  Facsimile servers
perform functions based on the requests of the controlling
applications.  When a controlling application needs only a few pages
of a document to be transmitted, the application must specify which
pages of the document are to be transmitted.  An efficient way of
specifying the pages to be transmitted is by using character strings,
such as "1,3-6" which represent pages one, three, four, five and six.
Facsimile servers often need the pages to be transmitted specified as
a list of integers.  The disclosed method describes how a facsimile
server may convert the page selection criteria from character string
data to integer data.

      By implementing a range indicator solution, a fax server can
successfully convert ASCII string page selection data into a usable
array of integers.  One character of the ASCII string is examined one
at a time.

      There are only three valid types of special characters used in
this methodology:  digits, commands, and hyphens.  If the ASCII
representation of the outbound fax page selection criteria contains
invalid characters, the entire string is considered invalid.  The
following is a description of how each type of character is utilized
in this methodology.

      Figs. 1-4 show a flow diagram of the method.  Fig. 1 is the
main flow sequence.  Fig. 2 is the "DO_HIGHNUM_WORK" step of Fig. 1.
Fig. 3 is the "DO_PAGE_WORK" step of Fig. 1.  Fig. 4 is the
"WORK_ON_CHARACTER" step of Fig. 1.

Digit     Each character that is determined to be a digit is appended
Digit
Digit
Digit
          into a temporary character buffer to be converted to
          integer data in a subsequent step.

Hyphen    If the input character is a hyphen a range indicator is is
Hyphen
Hyphen
Hyphen
          set to indicate that the page conversion process is now
          preparing to convert a range of pages.  A range of pages is
          considered to be a range of contiguous pages.  For example
          "1-3" would be considered as pages one, two and three.  The
          digits that had been previously stored in the temporary
          buffer will now be converted to integer and will represent
          the low end or starting value for the range of pages to be
        ...