Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/collections/string_res.cfa

    r714e206 r211def2  
    1010// Created On       : Fri Sep 03 11:00:00 2021
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Sat Feb 10 17:47:22 2024
    13 // Update Count     : 83
     12// Last Modified On : Wed Feb  7 22:21:33 2024
     13// Update Count     : 81
    1414//
    1515
     
    252252
    253253ifstream & ?|?( ifstream & is, _Istream_Rquoted f ) with( f.rstr ) {
    254         if ( eof( is ) ) throwResume ExceptionInst( missing_data );
    255254        int args;
    256255  fini: {
    257                 char rfmt[5] = { ' ', delimiters[0], '%', 'n', '\0' };
    258                 int len = -1;                                                                   // may not be set in fmt
    259                 args = fmt( is, rfmt, &len );                                   // remove leading whitespace and quote
    260           if ( eof( is ) || len == -1 ) break fini;
     256                args = fmt( is, "%*[ \f\n\r\t\v]" );                    // remove leading whitespace
     257          if ( eof( is ) ) break fini;
     258                char rfmt[4] = { delimiters[0], '%', 'n', '\0' };
     259                int len = 0;                                                                    // may not be set in fmt
     260                args = fmt( is, rfmt, &len );                                   // remove leading quote
     261          if ( len == 0 || eof( is ) ) break fini;
    261262
    262263                // Change the remainder of the read into a getline by reseting the closing delimiter.
Note: See TracChangeset for help on using the changeset viewer.