MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / ends_with

Function ends_with

paddle/utils/string/string_helper.cc:55–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55bool ends_with(std::string const& input, std::string const& test) {
56 if (test.size() > input.size()) return false;
57 return std::equal(test.rbegin(), test.rend(), input.rbegin());
58}
59
60// A helper class for reading lines from file.
61// A line buffer is maintained. It

Callers 4

IsVarNameEndsWithMethod · 0.85
IsGradOpFunction · 0.85
GetRegisterDataTypeFunction · 0.85
TESTFunction · 0.85

Calls 4

equalFunction · 0.50
sizeMethod · 0.45
rbeginMethod · 0.45
rendMethod · 0.45

Tested by 1

TESTFunction · 0.68