1
0

refactor: rename one overload of "replace" in string op into "to_replace" to indicate it produce new instance.

This commit is contained in:
2026-01-22 10:23:26 +08:00
parent 718fe426bf
commit 8989e909ad
4 changed files with 9 additions and 9 deletions

View File

@@ -66,7 +66,7 @@ namespace yycc::string::op {
* @param[in] _to_strl The \e new string.
* @return The result of replacement.
*/
std::u8string replace(const std::u8string_view& _strl, const std::u8string_view& _from_strl, const std::u8string_view& _to_strl);
std::u8string to_replace(const std::u8string_view& _strl, const std::u8string_view& _from_strl, const std::u8string_view& _to_strl);
#pragma endregion