ReplaceAllDirect



Replace all occurrences of substring in specified string with specified value.

You can find more information in comments below.

/**
Replace all occurrences of substring "search" in string "str" on substring "replace"
@param[in, out] str String where to search and replace
@param search Searching string
@param replace String to replace with
*/
void ReplaceAllDirect(String &str, const String &search, const String &replace);
/**
Replace all occurrences of substring "search" in ansi string "str" on substring "replace"
@param[in, out] str String where to search and replace
@param search Searching string
@param replace String to replace with
*/
void ReplaceAllDirect(AnsiString &str, const AnsiString &search, const AnsiString &replace);
/**
Replace all occurrences of substrings "search" in string "str" on substrings "replace"
@param[in, out] str String where to search and replace
@param search Searching strings
@param replace Strings to replace with. The size should be equal to the size of "search"
*/
void ReplaceAllDirect(String &str, const std::vector<String> &search, const std::vector<String> &replace);
/**
Replace all occurrences of substrings "search" in ansi string "str" on substrings "replace"
@param[in, out] str String where to search and replace
@param search Searching strings
@param replace Strings to replace with. The size should be equal to the size of "search"
*/
void ReplaceAllDirect(AnsiString &str, const std::vector<AnsiString> &search, const std::vector<AnsiString> &replace);
Namespace: nitisa
Include: Nitisa/Core/Strings.h