Changeset e891349 for libcfa/src/collections/string_res.hfa
- Timestamp:
- Jan 17, 2024, 2:16:04 PM (5 months ago)
- Branches:
- master
- Children:
- 5bf685f
- Parents:
- 06280ad
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/collections/string_res.hfa
r06280ad re891349 88 88 } 89 89 90 string_res & assign(string_res & s, const string_res & src, size_t maxlen); // copy specific length from other string 90 91 string_res & assign(string_res & s, const char * buffer, size_t bsize); // copy specific length from buffer 91 92 static inline string_res & ?=?(string_res & s, const char * c) { // copy from string literal (NULL-terminated) … … 129 130 130 131 // Concatenation 132 void ?+=?(string_res & s, const string_res & s2); 133 void ?+=?(string_res & s, char c); 134 void append(string_res & s, const string_res & s2, size_t maxlen); 135 void ?+=?(string_res & s, const char * c); 131 136 void append(string_res & s, const char * buffer, size_t bsize); 132 void ?+=?(string_res & s, char c); // append a character 133 void ?+=?(string_res & s, const string_res & s2); // append-concatenate to first string 134 static inline void ?+=?(string_res & s, const char * c) {135 append( s, c, strlen(c) ); 136 }137 138 static inline string_res & strcat(string_res & s, const string_res & s2) { s += s2; return s; } 139 static inline string_res & strcat(string_res & s, const char * c) { s += c; return s; } 140 static inline string_res & strncat(string_res & s, const string_res & s2, size_t maxlen) { append(s, s2, maxlen); return s; } 141 static inline string_res & strncat(string_res & s, const char * buffer, size_t bsize) { append(s, buffer, bsize); return s; } 137 142 138 143 // Repetition
Note: See TracChangeset
for help on using the changeset viewer.