Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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)

AltStyle によって変換されたページ (->オリジナル) /