Changeset 3e4bf0d for libcfa


Ignore:
Timestamp:
Nov 11, 2023, 7:38:56 AM (6 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
27316b4
Parents:
c6b4432
Message:

input manipulators for getline, excl, and incl reset argument to null string for failed read, temporarily make reading a C-string have the same semantics

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/iostream.cfa

    rc6b4432 r3e4bf0d  
    1010// Created On       : Wed May 27 17:56:53 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Thu Oct 19 21:10:10 2023
    13 // Update Count     : 1801
     12// Last Modified On : Sat Nov 11 07:06:27 2023
     13// Update Count     : 1803
    1414//
    1515
     
    10011001                                } // if
    10021002                        } // if
     1003                        // FIX ME: CFA strings need to be modified to NOT change the argument for this case, then this can be removed.
     1004                        if ( rwd > 0 && args == 0 ) f.s[0]= '\0';       // read failed => no pattern match => set string to null
    10031005                } else {
    10041006                        if ( f.flags.delimiter ) {                                      // getline
     
    10411043                                } // if
    10421044                        } // if
     1045                        if ( rwd > 0 && args == 0 ) f.s[0]= '\0';       // read failed => no pattern match => set string to null
    10431046                } // if
    10441047                if ( args == 1 && eof( is ) ) {                                 // data but scan ended at EOF
Note: See TracChangeset for help on using the changeset viewer.