MCPcopy Create free account
hub / github.com/NVIDIA-RTX/Donut / ends_with

Function ends_with

include/donut/core/string_utils.h:66–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64 }
65
66 inline bool ends_with(std::string_view const& value, std::string_view const& ending)
67 {
68 if (ending.size() > value.size())
69 return false;
70
71 return std::equal(ending.rbegin(), ending.rend(), value.rbegin());
72 }
73
74 // Trim white space
75

Callers 2

getFileSearchRegexMethod · 0.85
MediaFileSystemMethod · 0.85

Calls 3

rbeginMethod · 0.80
rendMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected