示例#1
0
bool StringICompare(const std::basic_string<CharT> &lhs, const std::basic_string<CharT> &rhs)
{
    if (lhs.length() == rhs.length()) {
        return std::equal(lhs.cbegin(), lhs.cend(), rhs.cbegin(), ICompare);
    } else {
        return false;
    }
}
示例#2
0
文件: utils.hpp 项目: nyaocat/BigMan
   basic_str_wrap( std::basic_string<Char_T> const& str )
       :fst( &*str.cbegin() )
	   ,lst( &*str.cend() )
	   ,cstr( str.c_str() )
    {}