Home | History | Annotate | Download | only in decpp

Lines Matching defs:ToUpper

54 struct ToUpper
57 ToUpper (void) : loc(locale::classic()) {}
58 char operator() (char c) { return std::toupper(c, loc); }
72 string toUpper (const string& str)
75 std::transform(str.begin(), str.end(), std::inserter(ret, ret.begin()), ToUpper());
84 return ToUpper()(str[0]) + str.substr(1);
133 char toUpper (char c)
135 return std::toupper(c, std::locale::classic());
164 DE_TEST_ASSERT(toUpper("FooBar") == "FOOBAR");
195 DE_TEST_ASSERT(toUpper('a') == 'A');
196 DE_TEST_ASSERT(toUpper('A') == 'A');