home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 6 File / 06-File.zip / textfilt.zip / quote.txt < prev    next >
Text File  |  1995-04-05  |  2KB  |  77 lines

  1. QUOTE v1.2 - Quote input for use in C/REXX code
  2. ===============================================
  3.   Initial version by Paul Gallagher 1995.
  4.  
  5. This REXX script is hereby placed in the public domain. Any changes
  6. should be adequately documented, and authorship notices of prior
  7. versions retained. As a courtesy, please e-mail modified files to
  8. previous authors.
  9.  
  10. Contents of this file:
  11.   * Version History
  12.   * Contacting the authors
  13.   * System Requirements
  14.   * About QUOTE
  15.   * Using QUOTE
  16.  
  17. Version History
  18. ===============
  19.  
  20. 95.03.09 : v1.2
  21.   - initial release, published in EDM/2 Vol 3 No 3
  22.     "REXX, the developer's best friend"
  23.  
  24. Contacting the Authors
  25. ======================
  26. Paul Gallagher: Internet (paulpg@ibm.net)
  27.                 Telephone: +61-3-566-1023.
  28.  
  29. System Requirements
  30. ===================
  31. QUOTE requires REXX to be properly installed on your system. 
  32.  
  33. About QUOTE
  34. ==========
  35. This script helps you prepare text for inclusion as print statements in C/C++
  36. or REXX programs.
  37. It is a filter - it processes the text redircted to its standard input stream.
  38. Output is written to standard output stream. So, use it like this:
  39.  
  40.     type filename.txt | quote rexx > out.cmd
  41.  
  42. to process filename.txt for use in a REXX script
  43.  
  44. Using QUOTE
  45. ==========
  46. Getting help:     QUOTE /?
  47.  
  48. Usage:
  49.        QUOTE type
  50. Where:
  51.  'type' is the type of quoting to perform, as follows:
  52.  QUOTE C
  53.     formats lines with printf statements
  54.  QUOTE C++
  55.     formats lines to print to cout iostream
  56.  QUOTE REXX
  57.     formats lines to print with 'Say' keyword
  58.  QUOTE REXXF
  59.     formats lines to print with 'LINEOUT' function
  60.  
  61. Example:
  62.  
  63.        [C:\]type readme | QUOTE c++
  64.        cout << "                  OS/2 Warp Version 3" << endl;
  65.        cout << "                         README" << endl;
  66.        cout << "" << endl;
  67.        cout << "" << endl;
  68.        cout << "  Welcome to OS/2* Warp Version 3 (OS/2 Warp)." << endl;
  69.        cout << "  This README contains the latest information available." << endl;
  70.        cout << "  It also contains helpful hints found in our testing." << endl;
  71.        cout << "" << endl;
  72.        cout << "  The README is only one source of information provided" << endl;
  73.        cout << "  with OS/2 Warp.  Greater detail can be found in:" << endl;
  74.        cout << "" << endl;
  75.        (etc...)
  76.  
  77.