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

Function remove_prepended_the

crawl-ref/source/stringutil.cc:585–590  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

583}
584
585string remove_prepended_the(string s)
586{
587 if (starts_with(s, "the "))
588 s.erase(0, 4); // strlen("the ")
589 return s;
590}
591
592// Crude, but functional.
593string make_time_string(time_t abs_time, bool terse)

Callers 9

stop_attack_promptFunction · 0.85
_recap_mon_keysFunction · 0.85
_mons_desc_keyFunction · 0.85
monster_dieFunction · 0.85
cancel_confused_moveFunction · 0.85
_speech_keysFunction · 0.85
describeMethod · 0.85

Calls 2

starts_withFunction · 0.85
eraseMethod · 0.45

Tested by

no test coverage detected