std::wstring CTTSEngObj::ReplaceText()

in PollyTTSEngine/ttsengobj.cpp [248:254]


std::wstring CTTSEngObj::ReplaceText(const std::wstring orig, const std::wstring fnd, const std::wstring repl)
{
    std::wstring ret = orig;
    for (int i = ret.find(fnd); i >= 0; i = ret.find(fnd))
        ret.replace(i, fnd.size(), repl);
    return ret;
}