bool endsWith() - JanKulbaga/String-CPP GitHub Wiki
bool endsWith()
The endsWith() method determines whether a string ends with the characters of a specified string, returning true or false as appropriate.
Example
#include "src/String.h"
int main()
{
String s = "Hello World";
s.endsWith("d"); // gives value 1
s.endsWith("l"); // gives value 0
return 0;
}
Parameters
const char* const str
Return value
true if the given characters are found at the end of the string, otherwise false