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