Skip to content

Commit 3b88aca

Browse files
Make String::concat(const char *, unsigned int) public
This method is useful when receiving data from external sources that pass an explicit length instead of a NUL-terminated string.
1 parent 81a2d51 commit 3b88aca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/String.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ class String
109109
// concatenation is considered unsucessful.
110110
unsigned char concat(const String &str);
111111
unsigned char concat(const char *cstr);
112+
unsigned char concat(const char *cstr, unsigned int length);
112113
unsigned char concat(char c);
113114
unsigned char concat(unsigned char num);
114115
unsigned char concat(int num);
@@ -225,7 +226,6 @@ class String
225226
void init(void);
226227
void invalidate(void);
227228
unsigned char changeBuffer(unsigned int maxStrLen);
228-
unsigned char concat(const char *cstr, unsigned int length);
229229

230230
// copy and move
231231
String & copy(const char *cstr, unsigned int length);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy