Exemple #1
0
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");
    }
}
std::string OAuthPrivate::baseString(const std::string & method, const std::string & url, const std::string & paramStr){

	std::string baseStr = toUpper(method) + "&" + Helper::urlencode(url);
	baseStr += "&" + Helper::urlencode(paramStr);
    return baseStr;
}