[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CharClass.eol



The module CharClass says this over its constant eol:

 - Constant: eol
     The implementation-defined character used to represent end 
     of line internally by OOC (*note Ascii::.)

and

 - Function: IsEOL `(CH: CHAR): BOOLEAN'
     Returns `TRUE' if, and only if, CH is the implementation-
     defined character used to represent end of line internally.

This does not give any information about the eol convention used
by the underlying system, i.e. the external representation that
applies to files.  For one character eol markers these two can be
the same, bug with MS-DOS cr+lf this is not posible.

Proposal:
Leave eol+IsEOL at Ascii.lf, and introduce a string constant
(read: a read-only character array) `systemEol' that holds the
appropriate value for the compiler's target system.

Then CharClass.systemEol can serve as default for TextRider's output
eol.

-- mva