20 #ifndef UTILS_STRINGS_REMOVE_FIRST_OF_H
21 #define UTILS_STRINGS_REMOVE_FIRST_OF_H
30 inline bool RemoveFirstOf(
const std::string &needle, std::string *haystack) {
31 size_t needle_pos = haystack->find(needle);
32 if (needle_pos != std::string::npos) {
33 haystack->erase(needle_pos, needle.size());
41 const std::string needle_string = { needle };
bool RemoveFirstOf(const std::string &needle, std::string *haystack)