Ignore:
Timestamp:
Apr 11, 2025, 6:39:45 PM (9 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
a514fed
Parents:
a800a19
Message:

change manipulator name quoted to quote

File:
1 edited

Legend:

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

    ra800a19 r30548de  
    1010// Created On       : Fri Sep 03 11:00:00 2021
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Wed Apr  9 15:16:29 2025
    13 // Update Count     : 76
     12// Last Modified On : Fri Apr 11 18:11:05 2025
     13// Update Count     : 77
    1414//
    1515
     
    132132}; // _Istream_Rwidth
    133133
    134 struct _Istream_Rquoted {
     134struct _Istream_Rquote {
    135135        // string_res * s;
    136136        // inline _Istream_str_base;
    137137        _Istream_Rwidth rstr;
    138 }; // _Istream_Rquoted
     138}; // _Istream_Rquote
    139139
    140140struct _Istream_Rstr {
     
    154154                f.delimiters[0] = delimiter; f.delimiters[1] = '\0'; f.flags.delimiter = true; return (_Istream_Rstr &)f;
    155155        }
    156         _Istream_Rquoted quoted( string_res & s, const char Ldelimiter = '\"', const char Rdelimiter = '\0' ) {
    157                 return (_Istream_Rquoted)@{ { .s = &s, { {.delimiters = { Ldelimiter, Rdelimiter, '\0' }}, .wd = -1, {.flags.rwd = true} } } };
    158         }
    159         _Istream_Rquoted & quoted( _Istream_Rwidth & f, const char Ldelimiter = '"', const char Rdelimiter = '\0' ) {
     156        _Istream_Rquote quote( string_res & s, const char Ldelimiter = '\"', const char Rdelimiter = '\0' ) {
     157                return (_Istream_Rquote)@{ { .s = &s, { {.delimiters = { Ldelimiter, Rdelimiter, '\0' }}, .wd = -1, {.flags.rwd = true} } } };
     158        }
     159        _Istream_Rquote & quote( _Istream_Rwidth & f, const char Ldelimiter = '"', const char Rdelimiter = '\0' ) {
    160160                f.delimiters[0] = Ldelimiter;  f.delimiters[1] = Rdelimiter;  f.delimiters[2] = '\0';
    161                 return (_Istream_Rquoted &)f;
     161                return (_Istream_Rquote &)f;
    162162        }
    163163        _Istream_Rstr incl( const char scanset[], string_res & s ) { return (_Istream_Rstr)@{ .s = &s, { {.scanset = scanset}, .wd = -1, {.flags.inex = false} } }; }
     
    167167        _Istream_Rstr ignore( string_res & s ) { return (_Istream_Rstr)@{ .s = &s, { {.scanset = 0p}, .wd = -1, {.flags.ignore = true} } }; }
    168168        _Istream_Rstr & ignore( _Istream_Rwidth & f ) { f.flags.ignore = true; return (_Istream_Rstr &)f; }
    169         _Istream_Rquoted & ignore( _Istream_Rquoted & f ) { f.rstr.flags.ignore = true; return (_Istream_Rquoted &)f; }
     169        _Istream_Rquote & ignore( _Istream_Rquote & f ) { f.rstr.flags.ignore = true; return (_Istream_Rquote &)f; }
    170170        _Istream_Rstr & ignore( _Istream_Rstr & f ) { f.flags.ignore = true; return (_Istream_Rstr &)f; }
    171171} // distribution
    172172forall( istype & | basic_istream( istype ) ) {
    173         istype & ?|?( istype & is, _Istream_Rquoted f );
     173        istype & ?|?( istype & is, _Istream_Rquote f );
    174174        istype & ?|?( istype & is, _Istream_Rstr f );
    175175        static inline istype & ?|?( istype & is, _Istream_Rwidth f ) { return is | *(_Istream_Rstr *)&f; }
Note: See TracChangeset for help on using the changeset viewer.