void SG_Language::SubstParadigmPattern(lem::UFString &pattern) const { for (lem::Container::size_type i = 0; i < params.size(); ++i) { if (params.get(i)->name.eqi(L"ParadigmSubst")) { if (params[i]->values.size() != 2) { const Solarix::SG_LanguageParam & p = *params[i]; // ... LEM_STOPIT; } const UFString &from = params[i]->values.front(); const UFString &to = params[i]->values.back(); pattern.subst_all(from, to); } } return; }
void lem::sqlite_escape( lem::UFString &str ) { str.subst_all( L"'", L"''" ); return; }