static std::string RemoveFirstOccurrence()

in chime-sdk-signaling-cpp/src/utils/sdp_utils.h [21:27]


  static std::string RemoveFirstOccurrence(std::string& str, const std::string& word) {
    auto pos = str.find(word);
    if (pos == std::string::npos) return str;

    str.erase(pos, word.length());
    return str;
  }