Ignore:
Timestamp:
Jan 19, 2024, 4:36:18 PM (5 months ago)
Author:
Michael Brooks <mlbrooks@…>
Branches:
master
Children:
dd10bf4
Parents:
ac939461
Message:

Adjust string assignment declarations for consistent/standard return type.

File:
1 edited

Legend:

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

    rac939461 rb1eefe50  
    4141void ?{}(string & s, const char * c, size_t size); // copy specific length from buffer
    4242
    43 void ?=?(string & s, const char * c); // copy assignment from literal
    44 void ?=?(string & s, const string & c);
    45 void ?=?(string & s, char c);
    46 string & ?=?(string & s, string & c);  // surprising ret seems to help avoid calls to autogen
    47 void assign(string & s, const string & c, size_t n);
    48 void assign(string & s, const char * c, size_t n);
    49 //string ?=?( string &, string ) = void;
     43string & ?=?(string & s, const string & c);
     44string & ?=?(string & s, string & c);
     45string & ?=?(string & s, const char * c); // copy from "literal"
     46string & ?=?(string & s, char c);  // copy from 'l'
     47string & assign(string & s, const string & c, size_t n);
     48string & assign(string & s, const char * c, size_t n);
    5049
    5150static inline string & strcpy(string & s, const char * c) { s = c; return s; }
Note: See TracChangeset for help on using the changeset viewer.