コード例 #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
ファイル: Utils.cpp プロジェクト: gnimmel/ofxMissing
void toUpper(string& data) {
	toUpperInPlace(data);
}