Ignore:
Timestamp:
Apr 11, 2025, 6:39:45 PM (6 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/iostream.hfa

    ra800a19 r30548de  
    1010// Created On       : Wed May 27 17:56:53 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Sun Oct 13 10:49:40 2024
    13 // Update Count     : 765
     12// Last Modified On : Fri Apr 11 18:11:25 2025
     13// Update Count     : 766
    1414//
    1515
     
    420420// Restrict nesting of input manipulators to those combinations that make sense.
    421421
    422 struct _Istream_Cquoted {
     422struct _Istream_Cquote {
    423423        _Istream_Cwidth cstr;
    424 }; // _Istream_Cquoted
     424}; // _Istream_Cquote
    425425
    426426struct _Istream_Cstr {
     
    441441                f.delimiters[0] = delimiter; f.delimiters[1] = '\0'; f.flags.delimiter = true; return (_Istream_Cstr &)f;
    442442        }
    443         _Istream_Cquoted quoted( char & ch, const char Ldelimiter = '\'', const char Rdelimiter = '\0' ) {
    444                 return (_Istream_Cquoted)@{ { .s = &ch, { {.delimiters = { Ldelimiter, Rdelimiter, '\1' }}, .wd = 1, {.flags.rwd = true} } } };
     443        _Istream_Cquote quote( char & ch, const char Ldelimiter = '\'', const char Rdelimiter = '\0' ) {
     444                return (_Istream_Cquote)@{ { .s = &ch, { {.delimiters = { Ldelimiter, Rdelimiter, '\1' }}, .wd = 1, {.flags.rwd = true} } } };
    445445        }
    446         _Istream_Cquoted & quoted( _Istream_Cwidth & f, const char Ldelimiter = '"', const char Rdelimiter = '\0' ) {
     446        _Istream_Cquote & quote( _Istream_Cwidth & f, const char Ldelimiter = '"', const char Rdelimiter = '\0' ) {
    447447                f.delimiters[0] = Ldelimiter;  f.delimiters[1] = Rdelimiter;  f.delimiters[2] = '\0';
    448                 return (_Istream_Cquoted &)f;
     448                return (_Istream_Cquote &)f;
    449449        }
    450450        _Istream_Cstr & incl( const char scanset[], _Istream_Cwidth & f ) { f.scanset = scanset; f.flags.inex = false; return (_Istream_Cstr &)f; }
     
    452452        _Istream_Cstr ignore( const char s[] ) { return (_Istream_Cstr)@{ { .s = (char *)s, { {.scanset = 0p}, .wd = -1, {.flags.ignore = true} } } }; }
    453453        _Istream_Cstr & ignore( _Istream_Cwidth & f ) { f.flags.ignore = true; return (_Istream_Cstr &)f; }
    454         _Istream_Cquoted & ignore( _Istream_Cquoted & f ) { f.cstr.flags.ignore = true; return (_Istream_Cquoted &)f; }
     454        _Istream_Cquote & ignore( _Istream_Cquote & f ) { f.cstr.flags.ignore = true; return (_Istream_Cquote &)f; }
    455455        _Istream_Cstr & ignore( _Istream_Cstr & f ) { f.cstr.flags.ignore = true; return (_Istream_Cstr &)f; }
    456456} // distribution
     
    458458forall( istype & | basic_istream( istype ) ) {
    459459        istype & ?|?( istype & is, _Istream_Cskip f );
    460         istype & ?|?( istype & is, _Istream_Cquoted f );
     460        istype & ?|?( istype & is, _Istream_Cquote f );
    461461        istype & ?|?( istype & is, _Istream_Cstr f );
    462462        static inline istype & ?|?( istype & is, _Istream_Cwidth f ) { return is | *(_Istream_Cstr *)&f; }
Note: See TracChangeset for help on using the changeset viewer.