Пример #1
0
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;
}
Пример #2
0
void lem::sqlite_escape( lem::UFString &str )
{
    str.subst_all( L"'", L"''" );
    return;
}