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

Function left_substr

dlib/string/string.h:797–803  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

795 typename alloc
796 >
797 const std::basic_string<charT,traits,alloc> left_substr (
798 const std::basic_string<charT,traits,alloc>& str,
799 const std::basic_string<charT,traits,alloc>& delim
800 )
801 {
802 return str.substr(0,str.find_first_of(delim));
803 }
804
805 template <
806 typename charT,

Callers 5

split_datasetFunction · 0.85
make_train_test_splitsFunction · 0.85
string_testFunction · 0.85
parse_http_requestFunction · 0.85

Calls

no outgoing calls

Tested by 1

string_testFunction · 0.68