MCPcopy Create free account
hub / github.com/ShenCiao/CialloResearch / right_substr

Function right_substr

dlib/dlib/string/string.h:830–840  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

828 typename alloc
829 >
830 const std::basic_string<charT,traits,alloc> right_substr (
831 const std::basic_string<charT,traits,alloc>& str,
832 const std::basic_string<charT,traits,alloc>& delim
833 )
834 {
835 typename std::basic_string<charT,traits,alloc>::size_type delim_pos = str.find_last_of(delim);
836 if (delim_pos != std::basic_string<charT,traits,alloc>::npos)
837 return str.substr(delim_pos+1);
838 else
839 return _dT(charT,"");
840 }
841
842 template <
843 typename charT,

Callers 1

string_testFunction · 0.85

Calls

no outgoing calls

Tested by 1

string_testFunction · 0.68