We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 015b004 commit 8289b2dCopy full SHA for 8289b2d
hardware/arduino/avr/cores/arduino/WString.cpp
@@ -31,6 +31,12 @@ String::String(const char *cstr)
31
if (cstr) copy(cstr, strlen(cstr));
32
}
33
34
+String::String(const char *cstr, unsigned int length)
35
+{
36
+ init();
37
+ if (cstr) copy(cstr, length);
38
+}
39
+
40
String::String(const String &value)
41
{
42
init();
hardware/arduino/avr/cores/arduino/WString.h
@@ -57,6 +57,7 @@ class String
57
// fails, the string will be marked as invalid (i.e. "if (s)" will
58
// be false).
59
String(const char *cstr = "");
60
+ String(const char *cstr, unsigned int length);
61
String(const String &str);
62
String(const __FlashStringHelper *str);
63
#ifdef __GXX_EXPERIMENTAL_CXX0X__
0 commit comments