字符串替换 replace System.SysUtils.hpp str = StringReplace(str, "Str1", "StrNew", TReplaceFlags() << rfReplaceAll);