MCPcopy Create free account
hub / github.com/davisking/dlib / ltrim

Function ltrim

dlib/string/string.h:593–604  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

string_testFunction · 0.85

Calls

no outgoing calls

Tested by 1

string_testFunction · 0.68