Improved function EndsWith(std::string const & s1, char const * s2)
Signed-off-by: S. Kozyr <s.trump@gmail.com>
This commit is contained in:
parent
05d4a835e5
commit
d62a930d75
1 changed files with 0 additions and 4 deletions
|
@ -330,10 +330,6 @@ bool EndsWith(UniString const & s1, UniString const & s2)
|
|||
|
||||
bool EndsWith(std::string const & s1, char const * s2)
|
||||
{
|
||||
size_t const n = s1.size();
|
||||
size_t const m = strlen(s2);
|
||||
if (n < m)
|
||||
return false;
|
||||
return EndsWith(s1, std::string_view(s2));
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue