MCPcopy Create free account
hub / github.com/AnetaTexler/FaceBlit / ltrim

Function ltrim

VS/include/dlib/string/string.h:598–609  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

596 typename alloc
597 >
598 const std::basic_string<charT,traits,alloc> ltrim (
599 const std::basic_string<charT,traits,alloc>& str,
600 const std::basic_string<charT,traits,alloc>& trim_chars
601 )
602 {
603 typedef std::basic_string<charT,traits,alloc> string;
604 typename string::size_type pos = str.find_first_not_of(trim_chars);
605 if (pos != string::npos)
606 return str.substr(pos);
607 else
608 return std::basic_string<charT,traits,alloc>();
609 }
610
611 template <
612 typename charT,

Callers 1

string_testFunction · 0.50

Calls

no outgoing calls

Tested by 1

string_testFunction · 0.40