MCPcopy Create free account
hub / github.com/SmingHub/Sming / endsWith

Method endsWith

Sming/Wiring/WString.cpp:620–624  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

618}
619
620bool String::endsWith(char suffix) const
621{
622 auto len = length();
623 return len > 0 && cbuffer()[len - 1] == suffix;
624}
625
626bool String::endsWith(const String& suffix) const
627{

Callers 4

executeMethod · 0.80
executeMethod · 0.80
setMethod · 0.80
getMimeTypeMethod · 0.80

Calls 2

cbufferMethod · 0.80
lengthMethod · 0.45

Tested by

no test coverage detected