Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
235
static inline bool starts_with(const string &s, const string &prefix)
236
{
237
return s.compare(0, prefix.size(), prefix) == 0;
238
}
239
240
static inline bool ends_with(const string &s, const string &suffix)
241
{
Callers
15
check_milestone
Method · 0.85
has_tag_prefix
Method · 0.85
_register_subvault
Function · 0.85
get_zombie_type
Method · 0.85
drac_monspec
Method · 0.85
mons_by_name
Method · 0.85
parse_single_spec
Method · 0.85
_write_stat
Function · 0.85
to_string
Method · 0.85
parse
Method · 0.85
floor_transition
Function · 0.85
stop_attack_prompt
Function · 0.85
Calls
2
compare
Method · 0.45
size
Method · 0.45
Tested by
1
_is_test_selected
Function · 0.68