Update WString.cpp (#1936)

This commit is contained in:
Terry J Myers 2018-11-19 10:45:09 -05:00 committed by Me No Dev
parent 2132d9f809
commit 1bc1e8c602

View File

@ -882,6 +882,12 @@ float String::toFloat(void) const
return 0; return 0;
} }
double String::toDouble(void) const {
if (buffer) {
return atof(buffer);
}
return 0;
}
unsigned char String::equalsConstantTime(const String &s2) const { unsigned char String::equalsConstantTime(const String &s2) const {
// To avoid possible time-based attacks present function // To avoid possible time-based attacks present function