Skip to content

Commit eaca5bf

Browse files
matthijskooijmanaentinger
authored andcommitted
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 1942ef5 commit eaca5bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: api/String.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ class String
106106
// concatenation is considered unsucessful.
107107
unsigned char concat(const String &str);
108108
unsigned char concat(const char *cstr);
109+
unsigned char concat(const char *cstr, unsigned int length);
109110
unsigned char concat(char c);
110111
unsigned char concat(unsigned char num);
111112
unsigned char concat(int num);
@@ -222,7 +223,6 @@ class String
222223
void init(void);
223224
void invalidate(void);
224225
unsigned char changeBuffer(unsigned int maxStrLen);
225-
unsigned char concat(const char *cstr, unsigned int length);
226226

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

0 commit comments

Comments
 (0)