Function Blam::Utils::String::replace

Function Documentation

std::string Blam::Utils::String::replace(std::string orig, std::string to_replace, std::string replace_with)

Replaces part of a string with another string.

Return

The original string with any instances of the substring replaced.

Parameters
  • orig: - The original string.

  • to_replace: - The substring to replace.

  • replace_with: - The string to replace any matches of the substring with.