static std::string RemoveAllSinceWordOccurrence()

in chime-sdk-signaling-cpp/src/utils/sdp_utils.h [29:34]


  static std::string RemoveAllSinceWordOccurrence(std::string& str, const std::string& word) {
    auto pos = str.find(word);
    if (pos == std::string::npos) return str;
    str.erase(str.begin() + static_cast<int>(pos), str.end());
    return str;
  }