Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chen3feng/toft
/ StringEndsWith
Function
StringEndsWith
base/string/algorithm.h:67–70 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
65
}
66
67
inline bool StringEndsWith(const StringPiece& str, const StringPiece& suffix)
68
{
69
return str.ends_with(suffix);
70
}
71
72
inline std::string StringRemoveSuffix(const StringPiece& str, const StringPiece& suffix)
73
{
Callers
3
StringRemoveSuffix
Function · 0.85
TEST
Function · 0.85
TEST
Function · 0.85
Calls
1
ends_with
Method · 0.80
Tested by
2
TEST
Function · 0.68
TEST
Function · 0.68