MCPcopy Create free account
hub / github.com/BlueAndi/Pixelix / endsWith

Method endsWith

lib/ArduinoNative/src/WString.h:443–453  ·  view source on GitHub ↗

* Ends string with given suffix? * * @param[in] suffix Suffix * * @return If string ends with suffix, it will return true otherwise false. */

Source from the content-addressed store, hash-verified

441 * @return If string ends with suffix, it will return true otherwise false.
442 */
443 bool endsWith(const String& suffix) const
444 {
445 bool result = false;
446
447 if (suffix.length() <= length())
448 {
449 result = 0 == m_stdStr.compare(length() - suffix.length(), suffix.length(), suffix.m_stdStr);
450 }
451
452 return result;
453 }
454
455private:
456

Callers 6

isImageTypeSupportedMethod · 0.80
registerTopicMethod · 0.80
isEOLMethod · 0.80
initMethod · 0.80
getContentTypeFunction · 0.80
handleFileDeleteFunction · 0.80

Calls 1

lengthMethod · 0.45

Tested by

no test coverage detected