コード例 #1
0
ファイル: SipUtil.cpp プロジェクト: batmancn/MyLife
bool is_equals(CStrRef l, CStrRef r)
{
    if (l.size() != r.size())
        return false;

    string::const_iterator c1  = l.begin(), c2 = r.begin();
    for ( ; c1 != l.end(); ++ c1, ++ c2 )
    {
        if (tolower(*c1) != tolower(*c2))
            return false;
    }

    return true;
}