home *** CD-ROM | disk | FTP | other *** search
- **********************************************************************
- * DISCLAIMER OF WARRANTIES: *
- * *
- * The following enclosed code is sample code created by IBM *
- * Corporation. This sample code is not part of any standard IBM *
- * product and is provided to you solely for the purpose of assisting *
- * you in the development of your applications. The code is provided *
- * "AS IS", without warranty of any kind. IBM shall not be liable *
- * for any damages arising out of your use of the sample code, even *
- * if they have been advised of the possibility of such damages *
- * *
- **********************************************************************
-
- SAMPLE - Code Translation
-
- DESCRIPTION:
- This program allows EBCDIC to ASCII and ASCII to EBCDIC
- translation of a string. It uses two maps, one with the EBCDIC
- code as key (E2AMap) and one with the ASCII code as key (A2EMap).
- It converts from EBCDIC to ASCII by finding the element whose key
- matches the EBCDIC code in E2AMap (which has the EBCDIC code as
- key) and taking the ASCII code information from that element. It
- converts from ASCII to EBCDIC by finding the key that matches the
- ASCII code in A2EMap (which has the ASCII code as key) and taking
- the EBCDIC code information for that element.
-
- TASK:
- This program uses maps to translate strings from EBCDIC to ASCII
- and from ASCCII to EBCDIC.
-
- CONCEPT/FEATURE:
- This program is a sample to demonstrate the use of the default
- class IMap in connection with element operation classes.
-
- HOW TO RUN THE SAMPLE FROM THE COMMAND LINE:
- From within the directory containing the sample, simply type
- the name of the executable:
-
- TRANSTAB
-
- ADDITIONAL INFORMATION:
-
- For additional information on this and other samples shipped with
- the VisualAge for C++ product, see the Guide to Samples notebook.
-
- To access the notebook from Program Manager, open the VisualAge
- for C++ product object, then open the Guide to Samples notebook.
-
-