Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Singular/Singular
/ ends_with
Method
ends_with
ppcc/adlib/str.cc:140–144 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
138
}
139
140
bool Str::ends_with(const char *s, Int n) {
141
if (n > _len)
142
return false;
143
return memcmp(_data + _len - n, s, n) == 0;
144
}
145
146
bool Str::ends_with(const char *s) {
147
return ends_with(s, strlen(s));
Callers
5
ends_with
Function · 0.80
WalkDir
Function · 0.80
ListFileTree
Function · 0.80
ParseArgs
Function · 0.80
c_source
Method · 0.80
Calls
3
ends_with
Function · 0.85
c_str
Method · 0.80
len
Method · 0.45
Tested by
1
ends_with
Function · 0.64