Site Menu Project Specification Implementation Recommendations Reference Needs Updating Work in Progress Wastebasket Wiki Manual |
IO Module ARRAYOFUNICHARSpec.IOModuleARRAYOFUNICHAR HistoryHide minor edits - Show changes to output 2010-05-24 12:46
by -
Changed lines 3-4 from:
(* to:
(* I/O Module for ARRAY OF CHAR Types *) Changed lines 7-19 from:
PROCEDURE Read (* assigns the corresponding value to s The file status of to any PROCEDURE Write( outfile : File; s : ARRAY OF UNICHAR ); (* Writes UNICHAR string s to output stream outfile, unformatted. *) PROCEDURE WriteF( outfile : File; fmtStr : ARRAY OF CHAR; items : CARDINAL; (* Writes The value of parameter items is calculated and inserted automatically. The output format is determined to:
PROCEDURE Read ( infile : File; VAR s : ARRAY OF UNICHAR ); (* Reads a string value from stream infile - any leading whitespace is skipped - the character being read is removed from infile - the code point of the character value read is assigned to s - the file status is set to any of: success, outOfRange, wrongFormat, endOfLine, or endOfInput. This procedure is substituted for invocations of READ with an ARRAY OF UNICHAR type argument. *) PROCEDURE Write ( outfile : File; CONST s : ARRAY OF UNICHAR ); (* Writes string s to stream outfile. This procedure is substituted for invocations of WRITE with an ARRAY OF UNICHAR type argument.*) PROCEDURE WriteF ( outfile : File; CONST fmtStr : ARRAY OF CHAR; items : VARIADIC OF CONST ARRAY OF UNICHAR ); (* Writes a formatted textual representation of one or more ARRAY OF UNICHAR values to output stream outfile. The output format is determined by fmtStr. This procedure is substituted for invocations of WRITEF with one or more ARRAY OF UNICHAR arguments. *) |