// file : CIDLC/Upcase.hpp // author : Jeff Parsons // cvs-id : $Id$ #ifndef UPCASE_HPP #define UPCASE_HPP #include namespace { // On some platforms toupper can be something other than a // function. int upcase (int c) { return std::toupper (c); } void str_upcase (std::string &str) { std::transform (str.begin (), str.end (), str.begin (), upcase); } } #endif // UPCASE_HPP