Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Singular/Singular
/ rfind
Method
rfind
ppcc/adlib/str.cc:251–257 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
249
}
250
251
Int Str::rfind(char ch) {
252
for (Int i = _len - 1; i >= 0; i--) {
253
if (_data[i] == ch)
254
return i;
255
}
256
return NOWHERE;
257
}
258
259
Int Str::rfind(const char *s, Int n) {
260
require(n >= 0,
"empty string"
);
Callers
4
Main
Function · 0.80
DirName
Function · 0.80
BaseName
Function · 0.80
FileExtension
Function · 0.80
Calls
1
require
Function · 0.85
Tested by
1
Main
Function · 0.64