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

Function ends_with

crawl-ref/source/stringutil.h:240–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238}
239
240static inline bool ends_with(const string &s, const string &suffix)
241{
242 if (s.length() < suffix.length())
243 return false;
244 return s.find(suffix, s.length() - suffix.length()) != string::npos;
245}
246
247vector<string> split_string(const string &sep, string s, bool trim = true,
248 bool accept_empties = false, int nsplits = -1,

Callers 15

has_tag_suffixMethod · 0.70
get_zombie_typeMethod · 0.70
mons_by_nameMethod · 0.70
parse_single_specMethod · 0.70
_write_statFunction · 0.70
_soh_typeFunction · 0.70
_curse_messageFunction · 0.70
get_dir_files_recursiveFunction · 0.70
_list_bonesFunction · 0.70
_old_bones_filenameFunction · 0.70

Calls 1

findMethod · 0.45

Tested by 1

_is_test_selectedFunction · 0.56