MCPcopy Create free account
hub / github.com/diasurgical/DevilutionX / TrimLeft

Function TrimLeft

Source/utils/language.cpp:106–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106string_view TrimLeft(string_view str)
107{
108 str.remove_prefix(std::min(str.find_first_not_of(" \t"), str.size()));
109 return str;
110}
111
112string_view TrimRight(string_view str)
113{

Callers 2

SetPluralFormFunction · 0.85
ParseMetadataFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected