We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eaca5bf commit 53df991Copy full SHA for 53df991
api/String.cpp
@@ -35,6 +35,12 @@ String::String(const char *cstr)
35
if (cstr) copy(cstr, strlen(cstr));
36
}
37
38
+String::String(const char *cstr, unsigned int length)
39
+{
40
+ init();
41
+ if (cstr) copy(cstr, length);
42
+}
43
+
44
String::String(const String &value)
45
{
46
init();
api/String.h
@@ -65,6 +65,7 @@ class String
65
// fails, the string will be marked as invalid (i.e. "if (s)" will
66
// be false).
67
String(const char *cstr = "");
68
+ String(const char *cstr, unsigned int length);
69
String(const String &str);
70
String(const __FlashStringHelper *str);
71
#if __cplusplus >= 201103L || defined(__GXX_EXPERIMENTAL_CXX0X__)
0 commit comments