Changeset 919 for trunk/yat/utility


Ignore:
Timestamp:
Sep 30, 2007, 3:38:30 AM (14 years ago)
Author:
Peter
Message:

fixes #239

Location:
trunk/yat/utility
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/utility/stl_utility.cc

    r865 r919  
    3333namespace utility {
    3434
    35   void to_lower(std::string& s)
     35  std::string& to_lower(std::string& s)
    3636  {
    3737    transform(s.begin(),s.end(), s.begin(), tolower);
     38    return s;
    3839  }
    3940
    4041
    41   void to_upper(std::string& s)
     42  std::string& to_upper(std::string& s)
    4243  {
    4344    transform(s.begin(),s.end(), s.begin(), toupper);
     45    return s;
    4446  }
    4547
  • trunk/yat/utility/stl_utility.h

    r869 r919  
    121121  /// @brief Function converting a string to lower case
    122122  ///
    123   void to_lower(std::string& s);
     123  std::string& to_lower(std::string& s);
    124124
    125125  ///
    126126  /// @brief Function converting a string to upper case
    127127  ///
    128   void to_upper(std::string& s);
     128  std::string& to_upper(std::string& s);
    129129
    130130}}} // of namespace utility, yat, and theplu
Note: See TracChangeset for help on using the changeset viewer.