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

Function starts_with

crawl-ref/source/stringutil.h:235–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233}
234
235static inline bool starts_with(const string &s, const string &prefix)
236{
237 return s.compare(0, prefix.size(), prefix) == 0;
238}
239
240static inline bool ends_with(const string &s, const string &suffix)
241{

Callers 15

check_milestoneMethod · 0.85
has_tag_prefixMethod · 0.85
_register_subvaultFunction · 0.85
get_zombie_typeMethod · 0.85
drac_monspecMethod · 0.85
mons_by_nameMethod · 0.85
parse_single_specMethod · 0.85
_write_statFunction · 0.85
to_stringMethod · 0.85
parseMethod · 0.85
floor_transitionFunction · 0.85
stop_attack_promptFunction · 0.85

Calls 2

compareMethod · 0.45
sizeMethod · 0.45

Tested by 1

_is_test_selectedFunction · 0.68