mirror of https://github.com/noisymime/Arduino.git
Revert "Added function on WString class to export char ptr"
This reverts commit a0c96bebdd
.
This commit is contained in:
parent
901c908495
commit
deb309b831
|
@ -53,8 +53,11 @@ size_t Print::print(const __FlashStringHelper *ifsh)
|
||||||
|
|
||||||
size_t Print::print(const String &s)
|
size_t Print::print(const String &s)
|
||||||
{
|
{
|
||||||
write((const uint8_t*)s.c_str(), s.length());
|
size_t n = 0;
|
||||||
return s.length();
|
for (uint16_t i = 0; i < s.length(); i++) {
|
||||||
|
n += write(s[i]);
|
||||||
|
}
|
||||||
|
return n;
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t Print::print(const char str[])
|
size_t Print::print(const char str[])
|
||||||
|
|
|
@ -642,8 +642,4 @@ long String::toInt(void) const
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
char* String::c_str() const
|
|
||||||
{
|
|
||||||
return buffer;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
|
@ -169,7 +169,6 @@ public:
|
||||||
|
|
||||||
// parsing/conversion
|
// parsing/conversion
|
||||||
long toInt(void) const;
|
long toInt(void) const;
|
||||||
char* c_str() const;
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
char *buffer; // the actual char array
|
char *buffer; // the actual char array
|
||||||
|
|
Loading…
Reference in New Issue