38 if (pos != std::string::npos && pos != 0) {
39 output_str = input_str.
substr(pos);
40 output_str =
"/" + output_str;
43 output_str =
"/" + input_str;
56 if (!input_str.
empty()) {
59 output_str = input_str.
substr(pos);
62 output_str = input_str;
77 if (pos != input_str.
length() - 1) {
79 output_str = input_str.
substr(0, pos + 1) +
"/";
82 output_str = input_str +
"/";
95 if (!input_str.
empty()) {
98 if (pos != std::string::npos) {
99 output_str = input_str.
substr(0, pos);
101 output_str = input_str;
115 if (!input_str.
empty()) {
118 if (pos != std::string::npos) {
119 output_str = input_str.
substr(pos + 1);
121 output_str = input_str;
T find_first_not_of(T... args)
T find_last_not_of(T... args)
T find_last_of(T... args)
std::string checkNoBeginSlashes(const std::string &input_str)
std::string checkBeginSlashes(const std::string &input_str)
std::string removeExtension(const std::string &input_str)
std::string removeAllBeforeLastSlash(const std::string &input_str)
std::string checkEndSlashes(const std::string &input_str)