Ignore:
Timestamp:
Sep 8, 2021, 4:40:08 PM (3 years ago)
Author:
Michael Brooks <mlbrooks@…>
Branches:
ADT, ast-experimental, enum, forall-pointer-decay, master, pthread-emulation, qualifiedEnum
Children:
5a40e4e
Parents:
f26923e
Message:

Reorganizing string constructor/assignment overload calls for better performance.

File:
1 edited

Legend:

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

    rf26923e rd8d512e  
    8282}
    8383
    84 void ?=?(string_res &s, const char* other); // copy assignment from literal
     84void assign(string_res &s, const char* buffer, size_t bsize); // copy specific length from buffer
     85void ?=?(string_res &s, const char* other); // copy from string literal (NULL-terminated)
    8586void ?=?(string_res &s, const string_res &other);
    8687void ?=?(string_res &s, string_res &other);
    87 void ?=?(string_res &s, char other);  // Str tolerates memcpys; still saw calls to autogen
     88void ?=?(string_res &s, char other);
    8889
    8990void ^?{}(string_res &s);
     
    9697void ?+=?(string_res &s, char other); // append a character
    9798void ?+=?(string_res &s, const string_res &s2); // append-concatenate to first string
    98 void ?+=?(string_res &s, const char* other); // append-concatenate to first string
     99void ?+=?(string_res &s, const char* other);
     100void append(string_res &s, const char* buffer, size_t bsize);
    99101
    100102// Character access
Note: See TracChangeset for help on using the changeset viewer.