MCPcopy Create free account
hub / github.com/crawl/crawl / ends_with

Function ends_with

crawl-ref/source/stringutil.cc:135–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133}
134
135int ends_with(const string &s, const char * const suffixes[])
136{
137 if (!suffixes)
138 return 0;
139
140 for (int i = 0; suffixes[i]; ++i)
141 if (ends_with(s, suffixes[i]))
142 return 1 + i;
143
144 return 0;
145}
146
147
148static const string _get_indent(const string &s)

Callers 1

strip_suffixFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected