Changeset dab6e39 for libcfa


Ignore:
Timestamp:
Apr 11, 2025, 8:52:08 AM (5 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
c4f8c4bf
Parents:
d03a386
Message:

small cleanups

Location:
libcfa/src/collections
Files:
2 edited

Legend:

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

    rd03a386 rdab6e39  
    1010// Created On       : Fri Sep 03 11:00:00 2021
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Wed Apr  9 22:27:40 2025
    13 // Update Count     : 368
     12// Last Modified On : Fri Apr 11 08:31:21 2025
     13// Update Count     : 369
    1414//
    1515
     
    207207
    208208forall( ostype & | basic_ostream( ostype ) ) {
    209 
    210209        ostype & ?|?( ostype & out, string s ) {
    211210                return out | (*s.inner); // print internal string_res
     
    231230
    232231forall( istype & | basic_istream( istype ) ) {
    233 
    234232        istype & ?|?( istype & in, string & s ) {
    235233                return in | (*s.inner); // read to internal string_res
     
    540538    if ( pos < len( s ) ) {
    541539                r = s( 0, pos ) + to + replace( s( pos + (ssize_t)len( from ) ), from, to );
    542                 string front = s( 0, pos );
    543                 string back = s( pos + (ssize_t)len( from ) );
    544                 r = front + to + replace( back, from, to );
    545540    } else {
    546541                r = s;
  • libcfa/src/collections/string.hfa

    rd03a386 rdab6e39  
    1010// Created On       : Fri Sep 03 11:00:00 2021
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Wed Apr  9 22:27:41 2025
    13 // Update Count     : 259
     12// Last Modified On : Fri Apr 11 08:28:27 2025
     13// Update Count     : 260
    1414//
    1515
     
    100100        _Ostream_Manip(string) & nobase( _Ostream_Manip(string) & fmt ) { fmt.flags.nobsdp = true; return fmt; }
    101101} // distribution
     102
    102103forall( ostype & | basic_ostream( ostype ) ) {
    103104        ostype & ?|?( ostype & os, _Ostream_Manip(string) f );
     
    150151        _Istream_Sstr & ignore( _Istream_Sstr & f ) { f.flags.ignore = true; return (_Istream_Sstr &)f; }
    151152} // distribution
     153
    152154forall( istype & | basic_istream( istype ) ) {
    153155        istype & ?|?( istype & is, _Istream_Squoted f );
     
    238240size_t find( const string & s, size_t start, const char * key );
    239241size_t find( const string & s, size_t start, const char * key, size_t keysize );
    240 static inline ?^?( const string & key, const string & s ) { return find( s, key ); }
    241 static inline ?^?( const char * key, const string & s ) { return find( s, key ); }
    242242
    243243bool includes( const string & s, const string & mask );
Note: See TracChangeset for help on using the changeset viewer.