예제 #1
0
파일: StringTest.cpp 프로젝트: as2120/ZPoco
void StringTest::testToUpper()
{
    {
        std::string s = "abc";
        assert (toUpper(s) == "ABC");
    }
    {
        std::string s = "Abc";
        assert (toUpper(s) == "ABC");
    }
    {
        std::string s = "abc";
        assert (toUpperInPlace(s) == "ABC");
    }
    {
        std::string s = "Abc";
        assert (toUpperInPlace(s) == "ABC");
    }
}
예제 #2
0
void toUpper(string& data) {
	toUpperInPlace(data);
}