Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
Slic3r::anonymous_namespace{Bonjour.cpp} Namespace Reference

Functions

std::string strip_service_dn (const std::string &service_name, const std::string &service_dn)
 

Function Documentation

◆ strip_service_dn()

std::string Slic3r::anonymous_namespace{Bonjour.cpp}::strip_service_dn ( const std::string &  service_name,
const std::string &  service_dn 
)
604{
605 if (service_name.size() <= service_dn.size()) {
606 return std::string();
607 }
608
609 auto needle = service_name.rfind(service_dn);
610 if (needle == service_name.size() - service_dn.size()) {
611 return service_name.substr(0, needle - 1);
612 } else {
613 return std::string();
614 }
615}

References strip_service_dn().

Referenced by strip_service_dn().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: