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

Function right_substr

dlib/string/string.h:825–835  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 5

tile_datasetFunction · 0.85
string_testFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by 1

string_testFunction · 0.68