OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::GUI::anonymous_namespace{ConfigManipulation.cpp} Namespace Reference

Functions

std::string trim_copy (const std::string &text)

Function Documentation

◆ trim_copy()

std::string Slic3r::GUI::anonymous_namespace{ConfigManipulation.cpp}::trim_copy ( const std::string & text)
35{
36 const auto first = text.find_first_not_of(" \t\r\n");
37 if (first == std::string::npos)
38 return {};
39
40 const auto last = text.find_last_not_of(" \t\r\n");
41 return text.substr(first, last - first + 1);
42}

References trim_copy().

Referenced by trim_copy().

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